mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-12 15:56:28 +00:00
fix #55: deleted obsolete $NOBIND global var and used the more powerful option_is_set() function to check wheatever the -n flag is missing or not
This commit is contained in:
parent
72fcc7c2f5
commit
1b4c08e904
4
src/tomb
4
src/tomb
@ -607,7 +607,7 @@ mount_tomb() {
|
|||||||
chown $(id -u $ME):$(id -g $ME) ${tombmount}
|
chown $(id -u $ME):$(id -g $ME) ${tombmount}
|
||||||
|
|
||||||
notice "encrypted storage $tombfile succesfully mounted on $tombmount"
|
notice "encrypted storage $tombfile succesfully mounted on $tombmount"
|
||||||
if ! [ $NOBIND ]; then
|
if ! option_is_set -n ; then
|
||||||
exec_safe_bind_hooks ${tombmount}
|
exec_safe_bind_hooks ${tombmount}
|
||||||
exec_safe_post_hooks ${tombmount} open
|
exec_safe_post_hooks ${tombmount} open
|
||||||
fi
|
fi
|
||||||
@ -945,7 +945,7 @@ umount_tomb() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Execute post-hooks for eventual cleanup
|
# Execute post-hooks for eventual cleanup
|
||||||
if ! [ $NOBIND ]; then
|
if ! option_is_set -n ; then
|
||||||
exec_safe_post_hooks ${tombmount%%/} close
|
exec_safe_post_hooks ${tombmount%%/} close
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user