Skip to content

Commit

Permalink
Fixed bug in the bugfix of setup.sh
Browse files Browse the repository at this point in the history
Previous commit was done to make it possible to run setup.sh from a different working directory then the script folder was in.
This fix actually does that.
  • Loading branch information
doekman committed Jun 21, 2018
1 parent 61a0be7 commit e6c2a7a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ function abspath {
fi
}

BASE_DIR=$(abspath $(basename $0))
SCRIPT_NAME=$(basename $0)
BASE_DIR=$(dirname $(abspath $0))
INSTALL_INTO=/usr/local/bin
COMMANDS='osagetlang osagitfilter'
LOG_PATH=~/Library/Logs/Catsdeep/
Expand Down Expand Up @@ -83,7 +84,7 @@ elif [[ $1 = rotate ]]; then
fi
touch $LOG_PATH/$LOG_NAME.log
else
echo "usage: $(basename $0) (configure|reset|rotate) [options]"
echo "usage: ${SCRIPT_NAME} (configure|reset|rotate) [options]"
echo
echo "configure: create symlinks in '$INSTALL_INTO' and add git config ('--no-git' to skip git config, or '--git-log' for logging)"
echo " reset: remove those symlinks"
Expand All @@ -97,4 +98,6 @@ else
echo "- '$CMD' is currently NOT installed"
fi
done
echo
echo "Script location: ${BASE_DIR}"
fi

0 comments on commit e6c2a7a

Please sign in to comment.