test
This commit is contained in:
parent
2c7cf84674
commit
97b0236def
@ -3,7 +3,6 @@
|
|||||||
#If no argument is passed, kill the script.
|
#If no argument is passed, kill the script.
|
||||||
[[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && echo "This script requires an argument, use --help for help" && exit
|
[[ -z "$*" || "-" == "$*" || "--" == "$*" ]] && echo "This script requires an argument, use --help for help" && exit
|
||||||
|
|
||||||
echo "yep"
|
|
||||||
|
|
||||||
args=("$@")
|
args=("$@")
|
||||||
|
|
||||||
@ -15,7 +14,7 @@ cd $SCRIPTPATH
|
|||||||
git fetch &> /dev/null
|
git fetch &> /dev/null
|
||||||
|
|
||||||
[[ -n $(git diff --name-only origin/beta | grep $SCRIPTNAME) ]] && {
|
[[ -n $(git diff --name-only origin/beta | grep $SCRIPTNAME) ]] && {
|
||||||
echo "Found a new version of me, updating myself..."
|
echo "Found a new version of HeavyScript, updating myself..."
|
||||||
git pull --force &> /dev/null
|
git pull --force &> /dev/null
|
||||||
echo -e "Running the new version...\n"
|
echo -e "Running the new version...\n"
|
||||||
count=0
|
count=0
|
||||||
|
Loading…
Reference in New Issue
Block a user