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:
3906d45
)
[update] : Allow enter
author
hayao
<hayao@fascode.net>
Fri, 9 Apr 2021 12:42:02 +0000
(21:42 +0900)
committer
hayao
<hayao@fascode.net>
Fri, 9 Apr 2021 12:42:02 +0000
(21:42 +0900)
tools/clean.sh
patch
|
blob
|
history
diff --git
a/tools/clean.sh
b/tools/clean.sh
index
6573f7d
..
80927fe
100755
(executable)
--- a/
tools/clean.sh
+++ b/
tools/clean.sh
@@
-137,10
+137,10
@@
if [[ ! "${noconfirm}" = true ]] && (( "$(find "${work_dir}" -type f 2> /dev/nul
msg_warn "${work_dir}"
msg_warn -n "Are you sure you want to continue?"
read -n 1 yesorno
- if [[ ! "${yesorno}" = "y" ]]; then
- exit 1
- else
+ if [[ "${yesorno}" = "y" ]] || [[ "${yesorno}" = "" ]]; then
echo
+ else
+ exit 1
fi
fi