Resolve shellcheck code warnings

This commit is contained in:
Peter Feerick
2021-08-10 20:01:02 +10:00
parent cf07ee94b3
commit f3fcb062f0
+2 -2
View File
@@ -16,7 +16,7 @@ do
fi fi
done done
if [[ `lsb_release -rs` != "20.04" ]]; then if [[ $(lsb_release -rs) != "20.04" ]]; then
echo "ERROR: Not running on Ubuntu 20.04!" echo "ERROR: Not running on Ubuntu 20.04!"
echo "Terminating the script now." echo "Terminating the script now."
exit 1 exit 1
@@ -24,7 +24,7 @@ fi
echo "=== Step 1: Checking if i386 requirement is satisfied ===" echo "=== Step 1: Checking if i386 requirement is satisfied ==="
OUTPUT=x$(dpkg --print-foreign-architectures 2> /dev/null | grep i386) || : OUTPUT=x$(dpkg --print-foreign-architectures 2> /dev/null | grep i386) || :
if [ $OUTPUT != "xi386" ]; then if [ "$OUTPUT" != "xi386" ]; then
echo "Need to install i386 architecture first." echo "Need to install i386 architecture first."
I386ARCH="no" I386ARCH="no"
sudo dpkg --add-architecture i386 sudo dpkg --add-architecture i386