summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2021-08-31 15:18:49 -0700
committerlouie <lshprung@yahoo.com>2021-08-31 15:18:49 -0700
commit9b885fe4346b0e32c00fd67d3464303940fc420a (patch)
tree8189a3b54c64a34210b3731186f710b17db8c8bf
parent3df8e3d01a41eef436f370acf7a2190ce756e306 (diff)
Better conditional statementHEADmaster
-rwxr-xr-xupdate_ungoogled_chromium.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/update_ungoogled_chromium.sh b/update_ungoogled_chromium.sh
index 984233d..e9a5d87 100755
--- a/update_ungoogled_chromium.sh
+++ b/update_ungoogled_chromium.sh
@@ -148,7 +148,7 @@ while read -r line; do
continue
fi
# Check that this platform is supported
- if [ -v ${SUPPORTED_PLATFORMS["$(echo "$PLATFORM_TABLE" | sed -n "$line,$((line))p" | cut -d ':' -f 1)"]} ]; then
+ if [ "${SUPPORTED_PLATFORMS["$(echo "$PLATFORM_TABLE" | sed -n "$line,$((line))p" | cut -d ':' -f 1)"]}" = '1' ]; then
FULL_INFO="$(echo -e "$FULL_INFO\n$(echo "$PLATFORM_TABLE" | sed -n "$line,$((line))p")\t$(echo "$PLATFORM_TABLE" | sed -n "$((line+1)),$((line+1))p")")"
fi
done < <(echo "$LINE_NUMBER")