mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-23 14:00:55 +01:00
21 lines
574 B
Bash
Executable file
21 lines
574 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# NOTE: This file is a wrapper script instead of a symlink so it will work in
|
|
# the Git Bash environment in Windows.
|
|
|
|
# Do bash magic to resolve the real location of this script through aliases,
|
|
# symlinks, etc.
|
|
SOURCE="${BASH_SOURCE[0]}";
|
|
while [ -h "$SOURCE" ]; do
|
|
LINK="$(readlink "$SOURCE")";
|
|
if [ "${LINK:0:1}" == "/" ]; then
|
|
# absolute symlink
|
|
SOURCE="$LINK"
|
|
else
|
|
# relative symlink
|
|
SOURCE="$(cd -P "$(dirname "$SOURCE")" && pwd)/$LINK"
|
|
fi
|
|
done;
|
|
DIR="$(cd -P "$(dirname "$SOURCE")" && pwd)"
|
|
|
|
exec $DIR/../scripts/arcanist.php "$@"
|