History

Merge pull request #38 from aryasaatvik/fix/bin-symlink-resolution

Rhys Sullivan committed 7 months ago

Commit b3c9f412 parents ffcd7a3 3e798b81 file · +7 −1Browse files

Unified · Split

apps/executor/bin/executor+7−1
@@ -1,4 +1,10 @@
1#!/usr/bin/env bash1#!/usr/bin/env bash
2set -euo pipefail2set -euo pipefail
3SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"3SOURCE="$0"
4while [ -L "$SOURCE" ]; do
5 DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
6 SOURCE="$(readlink "$SOURCE")"
7 [[ "$SOURCE" != /* ]] && SOURCE="$DIR/$SOURCE"
8done
9SCRIPT_DIR="$(cd "$(dirname "$SOURCE")" && pwd)"
4exec bun "$SCRIPT_DIR/../src/cli/main.ts" "$@"10exec bun "$SCRIPT_DIR/../src/cli/main.ts" "$@"