dev: shellcheck (fix SC2068)

This commit is contained in:
naskya 2023-11-14 09:42:43 +09:00
parent 5789fc2fae
commit 528b72cee2
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -22,7 +22,7 @@ say "Pulled successfully!\n"
## check if the update script itself is updated ## check if the update script itself is updated
say "Checking if the update script itself has been modified by this update..." say "Checking if the update script itself has been modified by this update..."
if [ $(git diff "${OLD_COMMIT}" "${NEW_COMMIT}" update.sh) != "" ]; then if [ "$(git diff "${OLD_COMMIT}" "${NEW_COMMIT}" update.sh)" != "" ]; then
say "Oh meow, that seems to be the case." say "Oh meow, that seems to be the case."
say "I'm sorry to bother you, but please run this script again!" say "I'm sorry to bother you, but please run this script again!"
exit 1 exit 1
@ -61,10 +61,10 @@ read -r -p "[y/N] > " yn
case "${yn}" in case "${yn}" in
[Yy]|[Yy][Ee][Ss]) [Yy]|[Yy][Ee][Ss])
./neko/update/docker.sh $@ ./neko/update/docker.sh "$@"
;; ;;
*) *)
./neko/update/native.sh $@ ./neko/update/native.sh "$@"
;; ;;
esac esac