Permalink
Browse files

fix #55: deleted obsolete $NOBIND global var and used the more powerf…

…ul option_is_set() function to check wheatever the -n flag is missing or not
  • Loading branch information...
1 parent 72fcc7c commit 1b4c08e904b28a976be8e70b4d51d62a0dccec95 @davinerd davinerd committed with jaromil Oct 25, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/tomb
View
4 src/tomb
@@ -607,7 +607,7 @@ mount_tomb() {
chown $(id -u $ME):$(id -g $ME) ${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_post_hooks ${tombmount} open
fi
@@ -945,7 +945,7 @@ umount_tomb() {
done
# Execute post-hooks for eventual cleanup
- if ! [ $NOBIND ]; then
+ if ! option_is_set -n ; then
exec_safe_post_hooks ${tombmount%%/} close
fi

0 comments on commit 1b4c08e

Please sign in to comment.