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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user