tomb-open fix awk for name containing paths

This commit is contained in:
boyska 2012-09-03 13:03:20 +02:00 committed by Jaromil
parent 75497a2382
commit 6bb655df0b

View File

@ -155,8 +155,9 @@ launch_status() {
if [ $DISPLAY ]; then
tombname=${1}
tombmap=`mount -l | awk "/\[${tombname}\]$/"' { print $1 } '`
tombmount=`mount -l | awk "/\[${tombname}\]$/"' { print $3 } '`
tombbase=`basename $tombname`
tombmap=`mount -l | awk "/\[${tombbase}\]\$/"' { print $1 } '`
tombmount=`mount -l | awk "/\[${tombbase}\]\$/"' { print $3 } '`
if [ -x ./tomb-status ]; then # launch from build dir
./tomb-status $tombmap $tombname $tombmount &!
else