Skip to content

Commit d83842a

Browse files
committed
fix behavior when sourced
1 parent d00dfd9 commit d83842a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bind_condor.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ LPC_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
44
LPC_CONDOR_LOCAL=/usr/local/bin/cmslpc-local-conf.py
55

66
# not all containers have /usr/bin/python3
7-
COMMAND_NAME=$(basename "$0")
7+
COMMAND_NAME=$(basename -- "$0")
88
COMMAND_PATH=$(readlink -f "${BASH_SOURCE[0]}")
99
if [ "$COMMAND_NAME" = "$(basename $LPC_CONDOR_LOCAL)" ]; then
1010
python3 ${LPC_CONDOR_LOCAL}.orig | grep -v "LOCAL_CONFIG_FILE"

0 commit comments

Comments
 (0)