Format scripts with shfmt and fix two issues identified by shellcheck (#2303)

* install: format script with `shfmt`

Signed-off-by: molese <molese@protonmail.com>

* install: double quote `GITACTIONS` variable to prevent word splitting (SC2086)

Signed-off-by: molese <molese@protonmail.com>

* install: replace `! -z` with `-n` (SC2236)

Signed-off-by: molese <molese@protonmail.com>

* update-beef: format script with `shfmt`

Signed-off-by: molese <molese@protonmail.com>

* scripts/bump-version.sh: format script with `shfmt`

Signed-off-by: molese <molese@protonmail.com>
This commit is contained in:
Molese
2022-02-18 14:01:47 +06:00
committed by GitHub
parent c7a3d4c032
commit 9b277a0276
3 changed files with 209 additions and 229 deletions

View File

@@ -7,13 +7,13 @@
set -euo pipefail
IFS=$'\n\t'
info() { echo -e "\\033[1;36m[INFO]\\033[0m $*"; }
info() { echo -e "\\033[1;36m[INFO]\\033[0m $*"; }
info 'Updating BeEF from GitHub repository...'
git pull
info 'Updating dependencies...'
if [ -f Gemfile.lock ]; then
rm Gemfile.lock
rm Gemfile.lock
fi
bundle install