bin: Simplify cd to install dir

This commit is contained in:
Richard Hansen 2020-05-14 17:43:45 -04:00
parent 2f76066d95
commit 335705e03d
5 changed files with 5 additions and 30 deletions

View file

@ -6,12 +6,7 @@ error() { log "ERROR: $@" >&2; }
fatal() { error "$@"; exit 1; }
# Move to the folder where ep-lite is installed
cd "$(dirname "$0")"
# Was this script started in the bin folder? if yes move out
if [ -d "../bin" ]; then
cd "../"
fi
cd "$(dirname "$0")"/..
ignoreRoot=0
for ARG in "$@"