Skip to content

Commit

Permalink
fix behavior when sourced
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Dec 20, 2024
1 parent d00dfd9 commit d83842a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind_condor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ LPC_CONDOR_CONFIG=/etc/condor/config.d/01_cmslpc_interactive
LPC_CONDOR_LOCAL=/usr/local/bin/cmslpc-local-conf.py

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

0 comments on commit d83842a

Please sign in to comment.