tomb

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

commit b62df89eea9cb588243eb63a03238ace0edbee77
parent 65b2fe4462ed66a204535f125ca293e93af9aef0
Author: Jaromil <jaromil@dyne.org>
Date:   Tue, 10 May 2011 09:26:07 +0200

little usability fixes

Diffstat:
Msrc/tomb | 7++++---
Msrc/tomb-open | 6+++++-
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/src/tomb b/src/tomb @@ -884,8 +884,9 @@ list_tombs() { print -n "$fg[white] open on " print -n "$fg_bold[white]$tombmount" print -n "$fg_no_bold[white] using " - print -n "$fg_bold[white]$tombfs $tombfsopts" - print -n "$fg_no_bold[white] since " + print "$fg_bold[white]$tombfs $tombfsopts" + print -n "$fg_no_bold[green]$tombname" + print -n "$fg_no_bold[white] open since " print "$fg_bold[white]$tombsince$fg_no_bold[white]" # now check hooks @@ -991,7 +992,7 @@ EOF } main () { - print $@ | grep '\-D' 2>&1 > /dev/null + echo $@ | grep '\-D' 2>&1 > /dev/null # ????? if [ $? = 0 ]; then fi diff --git a/src/tomb-open b/src/tomb-open @@ -158,7 +158,11 @@ launch_status() { tombname=${1} tombmap=`mount -l | awk "/\[${tombname}\]$/"' { print $1 } '` tombmount=`mount -l | awk "/\[${tombname}\]$/"' { print $3 } '` - tomb-status $tombmap $tombname $tombmount &! + if [ -x ./tomb-status ]; then # launch from build dir + ./tomb-status $tombmap $tombname $tombmount &! + else + tomb-status $tombmap $tombname $tombmount &! + fi } # got an argument