Skip to content

Commit

Permalink
fix #55: deleted obsolete $NOBIND global var and used the more powerf…
Browse files Browse the repository at this point in the history
…ul option_is_set() function to check wheatever the -n flag is missing or not
  • Loading branch information
davinerd authored and jaromil committed Oct 26, 2011
1 parent 72fcc7c commit 1b4c08e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tomb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 1b4c08e

Please sign in to comment.