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:
2e02bf1
)
[update] : Realpath work
author
hayao
<hayao@fascode.net>
Sun, 23 May 2021 08:30:17 +0000
(17:30 +0900)
committer
hayao
<hayao@fascode.net>
Sun, 23 May 2021 08:30:17 +0000
(17:30 +0900)
tools/clean.sh
patch
|
blob
|
history
diff --git
a/tools/clean.sh
b/tools/clean.sh
index
66c0dc5
..
f3cb779
100755
(executable)
--- a/
tools/clean.sh
+++ b/
tools/clean.sh
@@
-143,6
+143,9
@@
if (( ! "${EUID}" == 0 )); then
msg_error "This script must be run as root." "1"
fi
+# Fullpath
+work_dir="$(realpath "${work_dir}")"
+
if [[ ! "${noconfirm}" = true ]] && (( "$(find "${work_dir}" -type f 2> /dev/null | wc -l)" != 0 )); then
msg_warn "Forcibly unmount all devices mounted under the following directories and delete them recursively."
msg_warn "${work_dir}"