Skip to content

Commit

Permalink
do not use -e in scripts; undesired behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
kpedro88 committed Oct 9, 2017
1 parent cc941e1 commit e58209b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/jobExecCondor.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash -e
#!/bin/bash

# check default arguments
export SCRIPTS=""
while [[ $OPTIND -lt $# ]]; do
# getopts in silent mode, don't exit on errors
getopts ":S:" opt || status=$?
getopts ":S:" opt
case "$opt" in
S) export SCRIPTS=$OPTARG
;;
Expand Down
4 changes: 2 additions & 2 deletions scripts/step1.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/bin/bash

echo "Starting job on "`date` # to display the start date
echo "Running on "`uname -a` # to display the machine where the job is running
Expand All @@ -11,7 +11,7 @@ export CMSSWLOC=""
export OPTIND=1
while [[ $OPTIND -lt $# ]]; do
# getopts in silent mode, don't exit on errors
getopts ":C:L:" opt || status=$?
getopts ":C:L:" opt
case "$opt" in
C) export CMSSWVER=$OPTARG
;;
Expand Down

0 comments on commit e58209b

Please sign in to comment.