No need for this convulted sed now our prefixed output is on a direct terminal again :)
This commit is contained in:
parent
45bd125dcc
commit
faa555efe2
@ -12,10 +12,8 @@ do_unmount() {
|
|||||||
f_kill="-"
|
f_kill="-"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local mnts="$(mountinfo ${2:+--skip-point-regex} $2 ${3:+--node-regex} $3 ${4:+--fstype-regex} $4 ${5:+--skip-fstype-regex} $5 \
|
mountinfo ${2:+--skip-point-regex} $2 ${3:+--node-regex} $3 ${4:+--fstype-regex} $4 ${5:+--skip-fstype-regex} $5 | \
|
||||||
| sed -e "s/'/'\\\\''/g" -e "s/^/'/g" -e "s/$/'/g")"
|
while read mnt; do
|
||||||
eval set -- ${mnts}
|
|
||||||
for mnt in "$@" ; do
|
|
||||||
case "${cmd}" in
|
case "${cmd}" in
|
||||||
umount*)
|
umount*)
|
||||||
# If we're using the mount (probably /usr) then don't unmount us
|
# If we're using the mount (probably /usr) then don't unmount us
|
||||||
|
Loading…
Reference in New Issue
Block a user