mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-23 02:28:58 +00:00
[cleanup] Only add directory to mounted if it's actually mounted
This commit is contained in:
parent
fda78fbf8a
commit
226fd2a0f8
6
tomb
6
tomb
@ -1853,8 +1853,8 @@ exec_safe_bind_hooks() {
|
|||||||
elif [ ! -r "$mnt/$dir" ]; then
|
elif [ ! -r "$mnt/$dir" ]; then
|
||||||
_warning "bind-hook source not found in tomb, skipping ::1 mount point::/::2 subdir::" $mnt $dir
|
_warning "bind-hook source not found in tomb, skipping ::1 mount point::/::2 subdir::" $mnt $dir
|
||||||
else
|
else
|
||||||
mount -o bind,$MOUNTOPTS $mnt/$dir $HOME/${maps[$dir]}
|
mount -o bind,$MOUNTOPTS $mnt/$dir $HOME/${maps[$dir]} \
|
||||||
mounted+=("$HOME/${maps[$dir]}")
|
&& mounted+=("$HOME/${maps[$dir]}")
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
@ -2606,6 +2606,7 @@ main() {
|
|||||||
forge_key ${=PARAM}
|
forge_key ${=PARAM}
|
||||||
;;
|
;;
|
||||||
dig)
|
dig)
|
||||||
|
check_priv
|
||||||
dig_tomb ${=PARAM}
|
dig_tomb ${=PARAM}
|
||||||
;;
|
;;
|
||||||
lock)
|
lock)
|
||||||
@ -2640,6 +2641,7 @@ main() {
|
|||||||
umount_tomb $PARAM[1]
|
umount_tomb $PARAM[1]
|
||||||
;;
|
;;
|
||||||
passwd)
|
passwd)
|
||||||
|
check_priv
|
||||||
change_passwd $PARAM[1]
|
change_passwd $PARAM[1]
|
||||||
;;
|
;;
|
||||||
list)
|
list)
|
||||||
|
Loading…
Reference in New Issue
Block a user