From: Silvio Rhatto Date: Sat, 24 Feb 2018 17:38:17 +0000 (-0300) Subject: Minor fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=b052b851634247bcfe9d11a7005d6dd16b9188f3;p=inception.git Minor fix --- diff --git a/infection b/infection index fa364b0..353128c 100755 --- 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)"