Skip to content

Commit

Permalink
Merge pull request #55 from CALeDNA/develop
Browse files Browse the repository at this point in the history
fix syntax issues
  • Loading branch information
hector-baez authored Feb 19, 2024
2 parents ba608d7 + ffe0f6b commit 67c1a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tronko/assign/jwt/processing_notif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ while getopts "i:" opt; do
done

# check there's no other running jobs
current_jobs=currentJobs=$(( $(ben list -s /tmp/ben-assign -t r | grep -c "$PROJECTID") + $(ben list -s /tmp/ben-assignxl -t r | grep -c "$PROJECTID") )) # should be 1
currentJobs=$(( $(ben list -s /tmp/ben-assign -t r | grep -c "$PROJECTID") + $(ben list -s /tmp/ben-assignxl -t r | grep -c "$PROJECTID") )) # should be 1
pendingJobs=$(ben list -s /tmp/ben-assign -t p | grep -c "$PROJECTID") # should be 0
totalJobs=$((currentJobs + pendingJobs))

Expand All @@ -31,7 +31,7 @@ if [ "$totalJobs" -eq "1" ]; then
primersList=""
for folder in "${countedFolders[@]}"; do
if [ -n "$primersList" ]; then
concatenatedFolders+="," # Add a comma delimiter if the string is not empty
primersList+="," # Add a comma delimiter if the string is not empty
fi
primersList+="$folder" # Concatenate the folder
done
Expand Down

0 comments on commit 67c1a60

Please sign in to comment.