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 if [ $DISPLAY ]; then
tombname=${1} tombname=${1}
tombmap=`mount -l | awk "/\[${tombname}\]$/"' { print $1 } '` tombbase=`basename $tombname`
tombmount=`mount -l | awk "/\[${tombname}\]$/"' { print $3 } '` tombmap=`mount -l | awk "/\[${tombbase}\]\$/"' { print $1 } '`
tombmount=`mount -l | awk "/\[${tombbase}\]\$/"' { print $3 } '`
if [ -x ./tomb-status ]; then # launch from build dir if [ -x ./tomb-status ]; then # launch from build dir
./tomb-status $tombmap $tombname $tombmount &! ./tomb-status $tombmap $tombname $tombmount &!
else else