]> gitweb.fluxo.info Git - inception.git/commitdiff
Minor fix
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 24 Feb 2018 17:38:17 +0000 (14:38 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 24 Feb 2018 17:38:17 +0000 (14:38 -0300)
infection

index fa364b08ec9f7d0d40b13681ad12b3512c7fce8b..353128cfcac54a5d84fe32a1ed228196b19b6016 100755 (executable)
--- a/infection
+++ b/infection
@@ -21,7 +21,7 @@ function infection_usage {
 # Initialize
 function infection_init {
   # Set dir and base names depending on the way the program was called (symlink or direct)
-  if [ "$(cd `dirname $0` &> /dev/null && dirname `pwd`)" == "inception" ]; then
+  if [ "$(cd `dirname $0` &> /dev/null && basename `pwd`)" == "inception" ]; then
     DIRNAME="$(cd `dirname $0/..` &> /dev/null && pwd)"
   else
     DIRNAME="$(cd `dirname $0` &> /dev/null && pwd)"