1
0
mirror of https://github.com/avatao-content/test-tutorial-framework synced 2025-07-03 01:36:22 +00:00

Implement nicer handling of macOS compatibility aliases in hack folder

This commit is contained in:
Kristóf Tóth
2018-04-03 18:03:12 +02:00
parent 8a98fc05d5
commit 4234919902
3 changed files with 7 additions and 5 deletions

View File

@ -1,8 +1,9 @@
#!/usr/bin/env bash
set -eo pipefail
shopt -s expand_aliases
[ "$(uname)" == "Darwin" ] && readlink_cmd="greadlink" || readlink_cmd="readlink"
SCRIPT_DIR="$(dirname $($readlink_cmd -f $0))"
[ "$(uname)" == "Darwin" ] && alias readlink="greadlink" || :
SCRIPT_DIR="$(dirname $(readlink -f $0))"
TAO_PATH="${TAO_PATH:-$SCRIPT_DIR/../..}"
BASEIMAGE_REPO="${BASEIMAGE_REPO:-baseimage-tutorial-framework}"