Small improvement to the script naming technique

This commit is contained in:
Kevin MacMartin 2014-07-13 17:49:35 -04:00
parent c79712cd4c
commit 6015a6778a

2
update
View file

@ -17,7 +17,7 @@ ERRORLOG="update-errors.log" # set the error log filename
# script variables (these should not be touched)
VERSION=$(printf "%s.r%s" "$(git show -s --format=%ci master | sed 's/\ .*//g;s/-//g')" "$(git rev-list --count HEAD)")
SCRIPT_NAME=`echo "$0" | grep -o -e "[^\/]*$"`
SCRIPT_NAME=$(grep -o -e "[^\/]*$" <<< "$0")
SCRIPT_HOME="${0%/*}"
### END: VARIABLES ###