diff --git a/scripts/check_format.sh b/scripts/check_format.sh index a9e598136..2e451344a 100755 --- a/scripts/check_format.sh +++ b/scripts/check_format.sh @@ -1,9 +1,9 @@ #!/usr/bin/env bash -readonly BASEDIR=$(readlink -f $(dirname $0))/.. -source "$BASEDIR/scripts/common.sh" +rootdir=$(readlink -f "$(dirname "$0")")/.. +source "$rootdir/scripts/common.sh" -cd $BASEDIR +cd "$rootdir" # exit on errors set -e