Skip to content

Commit

Permalink
Update shell syntax to satisfy shfmt linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Nov 20, 2023
1 parent 06d01ea commit 93e1b32
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions extras/ioc_hash_scan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,18 @@ fi
CRED=$(env | grep AWS_SHARED_CREDENTIALS_FILE)
REG=$(env | grep AWS_REGION)
PROF=$(env | grep AWS_PROFILE)
[[ -z "$CRED" ]] && { echo "AWS_SHARED_CREDENTIALS_FILE environmental variable is not set."; exit 1; }
[[ -z "$REG" ]] && { echo "AWS_REGION environmental variable is not set."; exit 1; }
[[ -z "$PROF" ]] && { echo "AWS_PROFILE environmental variable is not set."; exit 1; }
[[ -z "$CRED" ]] && {
echo "AWS_SHARED_CREDENTIALS_FILE environmental variable is not set."
exit 1
}
[[ -z "$REG" ]] && {
echo "AWS_REGION environmental variable is not set."
exit 1
}
[[ -z "$PROF" ]] && {
echo "AWS_PROFILE environmental variable is not set."
exit 1
}

# Read instance id strings from file. [[ -n "$line" ]] handles the case where
# the last line doesn't end with a newline.
Expand Down

0 comments on commit 93e1b32

Please sign in to comment.