We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1be0fc commit e21bfabCopy full SHA for e21bfab
1 file changed
src/psij/launchers/scripts/launcher_lib.sh
@@ -5,18 +5,12 @@ set -e
5
# Retrieved 2026-03-26, License - CC BY-SA 3.0
6
7
function _psi_j_abspath() {
8
- if [ -d "$1" ]; then
9
- # dir
10
- (cd "$1"; pwd)
11
- elif [ -f "$1" ]; then
12
- # file
13
- if [[ $1 = /* ]]; then
14
- echo "$1"
15
- elif [[ $1 == */* ]]; then
16
- echo "$(cd "${1%/*}"; pwd)/${1##*/}"
17
- else
18
- echo "$(pwd)/$1"
19
- fi
+ if [[ $1 = /* ]]; then
+ echo "$1"
+ elif [[ $1 == */* ]]; then
+ echo "$(cd "${1%/*}"; pwd)/${1##*/}"
+ elif [ -n "$1" ]; then
+ echo "$(pwd)/$1"
20
fi
21
}
22
0 commit comments