diff options
Diffstat (limited to 'infection')
-rwxr-xr-x | infection | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)" |