aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-02-24 14:38:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-02-24 14:38:17 -0300
commitb052b851634247bcfe9d11a7005d6dd16b9188f3 (patch)
treeada65ea59a685629d725c151bd1052df1dd73878
parent81143eb7542d625c13cf01c0929d9644fa9378df (diff)
downloadinception-b052b851634247bcfe9d11a7005d6dd16b9188f3.tar.gz
inception-b052b851634247bcfe9d11a7005d6dd16b9188f3.tar.bz2
Minor fix
-rwxr-xr-xinfection2
1 files changed, 1 insertions, 1 deletions
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)"