tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 30669bb9fa264423bb483f13fd308e0528664bab
parent bd7300aa3ecb667f0e5b3ee252b42a3fedcb933c
Author: Daniel "GDrooid" Rodriguez <gdrooid@openmailbox.org>
Date:   Fri,  9 Jan 2015 17:33:07 +0100

Use spaces instead of tabs.

Diffstat:
Mtomb | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/tomb b/tomb @@ -1762,22 +1762,22 @@ mount_tomb() { # Default mount options are overridden with the -o switch { option_is_set -o } && { - local oldmountopts=$MOUNTOPTS - MOUNTOPTS="$(option_value -o)" } + local oldmountopts=$MOUNTOPTS + MOUNTOPTS="$(option_value -o)" } # TODO: safety check MOUNTOPTS # safe_mount_options && \ sudo mount -o $MOUNTOPTS /dev/mapper/${mapper} ${tombmount} # Clean up if the mount failed [[ $? == 0 ]] || { - _warning "Error mounting ::1 mapper:: on ::2 tombmount::" $mapper $tombmount - [[ $oldmountopts != $MOUNTOPTS ]] && \ - _warning "Are mount options '::1 mount options::' valid?" $MOUNTOPTS - # TODO: move cleanup to _endgame() - [[ -d $tombmount ]] && rmdir $tombmount - [[ -e /dev/mapper/$mapper ]] && sudo cryptsetup luksClose $mapper - # The loop is taken care of in _endgame() - _failure "Cannot mount ::1 tomb name::" $TOMBNAME + _warning "Error mounting ::1 mapper:: on ::2 tombmount::" $mapper $tombmount + [[ $oldmountopts != $MOUNTOPTS ]] && \ + _warning "Are mount options '::1 mount options::' valid?" $MOUNTOPTS + # TODO: move cleanup to _endgame() + [[ -d $tombmount ]] && rmdir $tombmount + [[ -e /dev/mapper/$mapper ]] && sudo cryptsetup luksClose $mapper + # The loop is taken care of in _endgame() + _failure "Cannot mount ::1 tomb name::" $TOMBNAME } sudo chown $UID:$GID ${tombmount}