Skip to content

Commit

Permalink
ShellCheck: Add ${EXIT_ ... } into double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-revay committed Aug 2, 2024
1 parent 23daee7 commit e9b5c70
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Android_13/configs_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fi

touch ~/.bashrc # Termux does not create .bashrc by default but some scripts use it

pushd ../CommonInitScripts/ || exit ${EXIT_FILE_IO_ERROR}
pushd ../CommonInitScripts/ || exit "${EXIT_FILE_IO_ERROR}"
# TODO cd in sharedConfig.sh
# shellcheck source=/dev/null
. sharedConfig.sh
popd || exit ${EXIT_FILE_IO_ERROR}
popd || exit "${EXIT_FILE_IO_ERROR}"
2 changes: 1 addition & 1 deletion Android_13/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

if ! uname -a | grep Android; then
echo The init script does not run on Android
exit ${EXIT_INCORRECT_PLATFORM}
exit "${EXIT_INCORRECT_PLATFORM}"
fi

if ! gh auth status; then
Expand Down
4 changes: 2 additions & 2 deletions UbuntuCLI/configs_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@

. ../prelude.sh

pushd ../CommonInitScripts/ || exit ${EXIT_FILE_IO_ERROR}
pushd ../CommonInitScripts/ || exit "${EXIT_FILE_IO_ERROR}"
# TODO cd in sharedConfig.sh
# shellcheck source=/dev/null
. sharedConfig.sh
popd || exit ${EXIT_FILE_IO_ERROR}
popd || exit "${EXIT_FILE_IO_ERROR}"

# ==== Misc ====
sudo update-alternatives --set editor /usr/bin/nvim
4 changes: 2 additions & 2 deletions UbuntuCLI/interactive_part.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [ "$1" = "--help" ]; then
echo
# shellcheck disable=SC2016
echo '--noninteractive skip stuff requiring user interaction (e.g. `gh auth login`)'
exit ${EXIT_SUCCESS}
exit "${EXIT_SUCCESS}"
fi

if [ "$1" == "--noninteractive" ]; then
Expand All @@ -39,5 +39,5 @@ elif [ "$1" == "" ]; then
interactive_part
else
echo "invalid argument $1"
exit ${EXIT_INVALID_ARGUMENT}
exit "${EXIT_INVALID_ARGUMENT}"
fi

0 comments on commit e9b5c70

Please sign in to comment.