mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
13 lines
237 B
Text
13 lines
237 B
Text
|
|
tmp_dir=$1
|
|
retcode=$2
|
|
|
|
FAILURE=0
|
|
|
|
# Iterate over inverted ordered mountpoints to prevent issues
|
|
for m in $(mount | grep " ${tmp_dir}" | awk '{ print $3 }' | tac); do
|
|
sudo umount $m
|
|
[[ $? != 0 ]] && FAILURE=1
|
|
done
|
|
|
|
exit $FAILURE
|