Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #74 from nhsuk/fix/shellcheck-fails
Browse files Browse the repository at this point in the history
🔨 Check for null string
  • Loading branch information
mikemonteith authored Jun 5, 2020
2 parents 747d83d + 4b5b25a commit d9339f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ check_rancher_vars() {

for i in $RANCHER_ENVS; do
VALUE=$(eval "echo \$$i")
if [ ! -n "$VALUE" ]; then
if [ -z "$VALUE" ]; then
echo "RANCHER ENV VARIABLE $i NOT SET!"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion gitlab/remove-review-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ check_rancher_vars() {

for i in $RANCHER_ENVS; do
VALUE=$(eval "echo \$$i")
if [ ! -n "$VALUE" ]; then
if [ -z "$VALUE" ]; then
echo "RANCHER ENV VARIABLE $i NOT SET!"
exit 1
fi
Expand Down

0 comments on commit d9339f6

Please sign in to comment.