]> gitweb.fluxo.info Git - rhatto/apps.git/commitdiff
Inception: fix dirname
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 12 Aug 2015 14:10:16 +0000 (11:10 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 12 Aug 2015 14:10:16 +0000 (11:10 -0300)
inception

index 9a111a10493fcbbdc53614a1d7ab23e92a22c76f..63ddf1cd4150939c3a94723e0c664647740ae9e3 100755 (executable)
--- a/inception
+++ b/inception
@@ -5,7 +5,7 @@
 
 # Parameters
 BASENAME="`basename $0`"
-DIRNAME="`dirname $0`"
+DIRNAME="$(cd `dirname $0` &> /dev/null && pwd)"
 
 # Main
 if [ -z "$1" ] || [ "$1" == "init" ]; then