test self

This commit is contained in:
Heavybullets8 2022-07-26 16:21:41 -06:00
parent 2e06b25dd6
commit c9db9cfc3e

View File

@ -9,7 +9,7 @@ script_name="heavy_script.sh"
cd "$script_path" || exit cd "$script_path" || exit
git fetch &> /dev/null git fetch &> /dev/null
if git diff --name-only origin/beta | grep -q "$script_name" ; then if git diff --name-only origin/beta ; then #| grep -q "$script_name"
echo "Found a new version of HeavyScript, updating myself..." echo "Found a new version of HeavyScript, updating myself..."
git reset --hard -q git reset --hard -q
git pull --force -q git pull --force -q