OSDN Git Service

[update] : Improved the judgment of the value that can be set to the owner.
authorhayao <shun819.mail@gmail.com>
Thu, 16 Apr 2020 02:50:17 +0000 (11:50 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 16 Apr 2020 02:50:17 +0000 (11:50 +0900)
wizard.sh

index 4b553ce..9bab522 100755 (executable)
--- a/wizard.sh
+++ b/wizard.sh
@@ -508,8 +508,16 @@ function set_iso_owner () {
     echo -n "イメージファイルの所有者を入力してください。: "
     read owner
     if [[ $(user_check ${owner}) = false ]]; then
+        echo "ユーザーが存在しません。"
         set_iso_owner
         return 0
+    elif  [[ -z "${owner}" ]]; then
+        echo "ユーザー名を入力して下さい。"
+        set_iso_owner
+        return 0
+    elif [[ "${owner}" = root ]]; then
+        echo "所有者の変更を行いません。"
+        return 0
     fi
 }