Skip to content

Commit

Permalink
Scripts: make shellcheck a bit happier on verify.sh
Browse files Browse the repository at this point in the history
I am still getting:
```
In scripts/debian/verify.sh line 47:
  && echo 'OK: ALL WORKED FINE!' || (echo 'KO: ERROR!!!' && exit 1)
  ^-- SC2015 (info): Note that A && B || C is not if-then-else. C may run when A is true.

For more information:
  https://www.shellcheck.net/wiki/SC2015 -- Note that A && B || C is not if-t...
```
  • Loading branch information
dannywillems committed Sep 24, 2024
1 parent e863832 commit c338c26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/debian/verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ while [[ "$#" -gt 0 ]]; do case $1 in
*) echo "Unknown parameter passed: $1"; exit 1;;
esac; shift; done

if [ -z $PACKAGE ]; then
if [ -z "${PACKAGE}" ]; then
echo "No package defined. exiting.."; exit 1;
fi

Expand Down

0 comments on commit c338c26

Please sign in to comment.