We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.env
1 parent 207dfe9 commit 38946bdCopy full SHA for 38946bd
useful-tools/path-mapping-hardcoded.hook
@@ -3,9 +3,11 @@
3
# this script makes symnlinks to the hardcoded random dirs that were
4
# patched away when 'PATH_MAPPING_HARDCODED' is used with quick-sharun
5
6
-CURRENTDIR="${CURRENTDIR:-${SHARUN_DIR:-${APPDIR}}}"
7
-if [ -f "$CURRENTDIR"/.env ]; then
8
- . "$CURRENTDIR"/.env
+CURRENTDIR="$(cd "${0%/*}" && echo "$PWD")"
+
+# Use relative path to make sure we pick the `.env` from the same AppDir
9
+if [ -f "$CURRENTDIR"/../.env ]; then
10
+ . "$CURRENTDIR"/../.env
11
[ -n "$_tmp_bin" ] && ln -sfn "$CURRENTDIR"/bin /tmp/"$_tmp_bin"
12
[ -n "$_tmp_lib" ] && ln -sfn "$CURRENTDIR"/lib /tmp/"$_tmp_lib"
13
[ -n "$_tmp_share" ] && ln -sfn "$CURRENTDIR"/share /tmp/"$_tmp_share"
0 commit comments