Skip to content

Commit 483df82

Browse files
committed
shellcheck fixes
1 parent ff047ce commit 483df82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bind_condor.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ 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)
8-
COMMAND_PATH=$(readlink -f "$BASH_SOURCE")
7+
COMMAND_NAME=$(basename "$0")
8+
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"
1111
exit $?

0 commit comments

Comments
 (0)