Skip to content

Commit f2a7f31

Browse files
Mute shellcheck warning when using BASH_SOURCE variable
1 parent 0491fd0 commit f2a7f31

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

env.sh

-5
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,9 @@ export PRJ_ROOT_DIR=""
33
if [ "$GITHUB_ACTIONS" = "true" ]; then
44
PRJ_ROOT_DIR="$GITHUB_WORKSPACE"
55
else
6-
<<<<<<< HEAD
7-
if [ "$0" = "-bash" ]; then
8-
PRJ_ROOT_DIR="$(dirname "$(realpath ${BASH_SOURCE[0]})")"
9-
=======
106
if [ -n "${BASH_SOURCE[0]:-}" ]; then
117
# shellcheck disable=SC3000-SC4000
128
PRJ_ROOT_DIR="$(dirname "$(realpath "${BASH_SOURCE[0]}")")"
13-
>>>>>>> 62de35a ([misc] Source env.sh correctly in ZSH and Bash)
149
else
1510
PRJ_ROOT_DIR="$(dirname "$(realpath "$0")")"
1611
fi

0 commit comments

Comments
 (0)