Skip to content

Commit

Permalink
!= is a string comparison operator
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxymVlasov committed Dec 23, 2021
1 parent e04081e commit 379b56a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions terraform_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function terraform_fmt_ {
per_dir_hook_unique_part "$args" "$dir_path"

local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi

Expand All @@ -94,7 +94,7 @@ function terraform_fmt_ {

terraform fmt "${ARGS[@]}" "$tfvars_file"
local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi
done
Expand Down
2 changes: 1 addition & 1 deletion terraform_providers_lock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function common::per_dir_hook {
per_dir_hook_unique_part "$args" "$dir_path"

local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi

Expand Down
2 changes: 1 addition & 1 deletion terraform_tflint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function common::per_dir_hook {
per_dir_hook_unique_part "$args" "$dir_path"

local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi

Expand Down
2 changes: 1 addition & 1 deletion terraform_tfsec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function common::per_dir_hook {
per_dir_hook_unique_part "$args" "$dir_path"

local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi

Expand Down
2 changes: 1 addition & 1 deletion terragrunt_fmt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function common::per_dir_hook {
per_dir_hook_unique_part "$args" "$dir_path"

local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi

Expand Down
2 changes: 1 addition & 1 deletion terragrunt_validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function common::per_dir_hook {
per_dir_hook_unique_part "$args" "$dir_path"

local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi

Expand Down
2 changes: 1 addition & 1 deletion terrascan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function common::per_dir_hook {
per_dir_hook_unique_part "$args" "$dir_path"

local exit_code=$?
if [ "$exit_code" != 0 ]; then
if [ "$exit_code" -ne 0 ]; then
final_exit_code=$exit_code
fi

Expand Down

0 comments on commit 379b56a

Please sign in to comment.