Browse Source

scripts/InstallScripts/InstallPrawnOS.sh: fix shellcheck SC2053 'Quote the right-hand side of == in [[ ]] to prevent glob matching.'

Austin English 4 years ago
parent
commit
56aff1dfc2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scripts/InstallScripts/InstallPrawnOS.sh

+ 1 - 1
scripts/InstallScripts/InstallPrawnOS.sh

@@ -71,7 +71,7 @@ install() {
             TARGET=/dev/sda
         fi
     fi
-    if [[ $TARGET == $BOOT_DEVICE ]]
+    if [[ "$TARGET" == "$BOOT_DEVICE" ]]
     then
         echo "Can't install to booted device, please ensure you have *only* the booted device and target device inserted"
         exit