Bladeren bron

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

Austin English 4 jaren geleden
bovenliggende
commit
56aff1dfc2
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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