diff options
| author | Silvio Rhatto <rhatto@riseup.net> | 2018-02-24 14:38:17 -0300 |
|---|---|---|
| committer | Silvio Rhatto <rhatto@riseup.net> | 2018-02-24 14:38:17 -0300 |
| commit | b052b851634247bcfe9d11a7005d6dd16b9188f3 (patch) | |
| tree | ada65ea59a685629d725c151bd1052df1dd73878 | |
| parent | 81143eb7542d625c13cf01c0929d9644fa9378df (diff) | |
| download | inception-b052b851634247bcfe9d11a7005d6dd16b9188f3.tar.gz inception-b052b851634247bcfe9d11a7005d6dd16b9188f3.tar.bz2 | |
Minor fix
| -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)" |
