瀏覽代碼

Update netboot.sh

Brent, Yang Bohan 7 年之前
父節點
當前提交
d306652c97
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      netboot.sh

+ 3 - 1
netboot.sh

@@ -150,11 +150,13 @@ else
   fi
 fi
 
-if [ -z "$PASSWD" ] && [ "$MANUALLY" != true ]; then
+if [ "$MANUALLY" != true ]; then
+if [ -z "$PASSWD" ]; then
   PASSWD=$(mkpasswd -m sha-512)
 else
   PASSWD=$(mkpasswd -m sha-512 "$PASSWD")
 fi
+fi
 
 
 if [ "$DRYRUN" != true ]; then