[PATCH v2 04/11] tilo: replace sed with dirname in tilo.sh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Use dirname to figure out the path of maketilo.

Signed-off-by: Aaro Koskinen <aaro.koskinen@xxxxxx>
---
 tilo/tilo.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tilo/tilo.sh b/tilo/tilo.sh
index f152e288d967..175dacf71f22 100755
--- a/tilo/tilo.sh
+++ b/tilo/tilo.sh
@@ -112,7 +112,7 @@ if [ -z "$sun4u" -a -z "$sun4c" ]; then
 	exit 1
 fi
 
-`echo $0 | sed 's/tilo$/maketilo/'` $tilo_args out=$output
+$(dirname $0)/maketilo $tilo_args out=$output
 
 rm -f $to_remove
 
-- 
1.8.5.1

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Kernel Development]     [DCCP]     [Linux ARM Development]     [Linux]     [Photo]     [Yosemite Help]     [Linux ARM Kernel]     [Linux SCSI]     [Linux x86_64]     [Linux Hams]

  Powered by Linux