little usability fixes

This commit is contained in:
Jaromil 2011-05-10 09:26:07 +02:00
parent 65b2fe4462
commit b62df89eea
2 changed files with 9 additions and 4 deletions

View File

@ -884,8 +884,9 @@ list_tombs() {
print -n "$fg[white] open on " print -n "$fg[white] open on "
print -n "$fg_bold[white]$tombmount" print -n "$fg_bold[white]$tombmount"
print -n "$fg_no_bold[white] using " print -n "$fg_no_bold[white] using "
print -n "$fg_bold[white]$tombfs $tombfsopts" print "$fg_bold[white]$tombfs $tombfsopts"
print -n "$fg_no_bold[white] since " print -n "$fg_no_bold[green]$tombname"
print -n "$fg_no_bold[white] open since "
print "$fg_bold[white]$tombsince$fg_no_bold[white]" print "$fg_bold[white]$tombsince$fg_no_bold[white]"
# now check hooks # now check hooks
@ -991,7 +992,7 @@ EOF
} }
main () { main () {
print $@ | grep '\-D' 2>&1 > /dev/null echo $@ | grep '\-D' 2>&1 > /dev/null
# ????? # ?????
if [ $? = 0 ]; then if [ $? = 0 ]; then
fi fi

View File

@ -158,7 +158,11 @@ launch_status() {
tombname=${1} tombname=${1}
tombmap=`mount -l | awk "/\[${tombname}\]$/"' { print $1 } '` tombmap=`mount -l | awk "/\[${tombname}\]$/"' { print $1 } '`
tombmount=`mount -l | awk "/\[${tombname}\]$/"' { print $3 } '` 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 # got an argument