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:
@ -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}"
|
||||
|
Reference in New Issue
Block a user