mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-14 16:54:03 +00:00
tomb-open fix awk for name containing paths
This commit is contained in:
parent
75497a2382
commit
6bb655df0b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user