OSDN Git Service
(root)
/
alterlinux
/
alterlinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9662453
)
[update] : Improved the judgment of the value that can be set to the owner.
author
hayao
<shun819.mail@gmail.com>
Thu, 16 Apr 2020 02:50:17 +0000
(11:50 +0900)
committer
hayao
<shun819.mail@gmail.com>
Thu, 16 Apr 2020 02:50:17 +0000
(11:50 +0900)
wizard.sh
patch
|
blob
|
history
diff --git
a/wizard.sh
b/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
}