remove updated
This commit is contained in:
parent
3eb9a1a28c
commit
36f0c0b485
@ -20,7 +20,7 @@ if git diff --name-only origin/main | grep -q "$script_name" ; then
|
|||||||
count=0
|
count=0
|
||||||
for i in "${args[@]}"
|
for i in "${args[@]}"
|
||||||
do
|
do
|
||||||
[[ "$i" == "--self-update" ]] && unset "args[$count]" && args+=("--updated") && break
|
[[ "$i" == "--self-update" ]] && unset "args[$count]" && break
|
||||||
((count++))
|
((count++))
|
||||||
done
|
done
|
||||||
sleep 5
|
sleep 5
|
||||||
@ -390,9 +390,6 @@ do
|
|||||||
delete-backup)
|
delete-backup)
|
||||||
deleteBackup="true"
|
deleteBackup="true"
|
||||||
;;
|
;;
|
||||||
updated)
|
|
||||||
self_updated="true"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo -e "Invalid Option \"--$OPTARG\"\n" && help
|
echo -e "Invalid Option \"--$OPTARG\"\n" && help
|
||||||
exit
|
exit
|
||||||
@ -459,7 +456,6 @@ done
|
|||||||
|
|
||||||
#Continue to call functions in specific order
|
#Continue to call functions in specific order
|
||||||
[[ "$help" == "true" ]] && help
|
[[ "$help" == "true" ]] && help
|
||||||
[[ "$self_updated" == "true" ]] && echo -e "HeavyScript has been updated\n"
|
|
||||||
[[ "$self_update" == "true" ]] && self_update
|
[[ "$self_update" == "true" ]] && self_update
|
||||||
[[ "$deleteBackup" == "true" ]] && deleteBackup && exit
|
[[ "$deleteBackup" == "true" ]] && deleteBackup && exit
|
||||||
[[ "$dns" == "true" ]] && dns && exit
|
[[ "$dns" == "true" ]] && dns && exit
|
||||||
|
Loading…
Reference in New Issue
Block a user