Skip to content

Commit ba500f4

Browse files
committed
[update] : Realpath work
1 parent 2e02bf1 commit ba500f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/clean.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,9 @@ if (( ! "${EUID}" == 0 )); then
143143
msg_error "This script must be run as root." "1"
144144
fi
145145

146+
# Fullpath
147+
work_dir="$(realpath "${work_dir}")"
148+
146149
if [[ ! "${noconfirm}" = true ]] && (( "$(find "${work_dir}" -type f 2> /dev/null | wc -l)" != 0 )); then
147150
msg_warn "Forcibly unmount all devices mounted under the following directories and delete them recursively."
148151
msg_warn "${work_dir}"

0 commit comments

Comments
 (0)