浏览代码

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

Austin English 4 年之前
父节点
当前提交
56aff1dfc2
共有 1 个文件被更改,包括 1 次插入1 次删除
  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