summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/xrepo.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/scripts/xrepo.sh b/scripts/xrepo.sh
index aa9ca3da3..8d745562e 100755
--- a/scripts/xrepo.sh
+++ b/scripts/xrepo.sh
@@ -1,7 +1,5 @@
-#!/usr/bin/env sh
-SCRIPT=$(readlink -f "$0")
-BASEDIR=$(dirname "$SCRIPT")
-echo $BASEDIR
+#!/usr/bin/env bash
+BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if [ -f "$BASEDIR/xmake" ]; then
$BASEDIR/xmake lua private.xrepo "$@"
else