Skip to content

Commit

Permalink
Minor code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Aug 4, 2018
1 parent 2998719 commit 048a4ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions bin/smalltalkci
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

if [[ -z "${SMALLTALK_CI_HOME:-}" || "$@" = *--self-test* ]]; then
smalltalkci="${BASH_SOURCE[0]}" # start from this very file
[ -L "$smalltalkci" ] && smalltalkci="$(readlink "$smalltalkci")" # if it's a symlink, resolve it
smalltalkci="$( cd "$(dirname "$smalltalkci")" && pwd -P )" # resolve to physical path
if [[ -L "${smalltalkci}" ]]; then # if it is a symlink, resolve it
smalltalkci="$(readlink "${smalltalkci}")"
fi
bin_directory="$(cd "$(dirname "${smalltalkci}")" && pwd -P)"

readonly SMALLTALK_CI_HOME="$(dirname "$smalltalkci")"
readonly SMALLTALK_CI_HOME="$(dirname "${bin_directory}")"
fi

"${SMALLTALK_CI_HOME}/run.sh" "$@"

0 comments on commit 048a4ed

Please sign in to comment.