Skip to content

Commit d4928fc

Browse files
committed
lint: fix shellcheck findings
1 parent 543db18 commit d4928fc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

bash/install/falcon-linux-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ get_oauth_token() {
777777
fi
778778
cs_falcon_cloud="${region_hint}"
779779
else
780-
if [ "x${FALCON_CLOUD}" != "x${region_hint}" ]; then
780+
if [ "${FALCON_CLOUD}" != "${region_hint}" ]; then
781781
echo "WARNING: FALCON_CLOUD='${FALCON_CLOUD}' environment variable specified while credentials only exists in '${region_hint}'" >&2
782782
fi
783783
fi

bash/install/falcon-linux-uninstall.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ get_oauth_token() {
442442
fi
443443
cs_falcon_cloud="${region_hint}"
444444
else
445-
if [ "x${FALCON_CLOUD}" != "x${region_hint}" ]; then
445+
if [ "${FALCON_CLOUD}" != "${region_hint}" ]; then
446446
echo "WARNING: FALCON_CLOUD='${FALCON_CLOUD}' environment variable specified while credentials only exists in '${region_hint}'" >&2
447447
fi
448448
fi

bash/migrate/falcon-linux-migrate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ get_oauth_token() {
371371
fi
372372
cs_falcon_cloud="${region_hint}"
373373
else
374-
if [ "x${FALCON_CLOUD}" != "x${region_hint}" ]; then
374+
if [ "${FALCON_CLOUD}" != "${region_hint}" ]; then
375375
echo "WARNING: FALCON_CLOUD='${FALCON_CLOUD}' environment variable specified while credentials only exists in '${region_hint}'" >&2
376376
fi
377377
fi

0 commit comments

Comments
 (0)