Skip to content

Commit 4d99709

Browse files
committed
Added explanatory link for obscure bash stuff
1 parent 78d6dc9 commit 4d99709

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

etc/venv_juwels/config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# See https://stackoverflow.com/a/28336473
12
SOURCE_PATH="${BASH_SOURCE[0]:-${(%):-%x}}"
23

34
## Check if this script is sourced

etc/venv_juwels/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3+
# See https://stackoverflow.com/a/28336473
34
SOURCE_PATH="${BASH_SOURCE[0]:-${(%):-%x}}"
45

56
RELATIVE_PATH="$(dirname "$SOURCE_PATH")"

0 commit comments

Comments
 (0)