Skip to content

Commit

Permalink
Fix cancel script file matching
Browse files Browse the repository at this point in the history
  • Loading branch information
axdanbol committed Mar 7, 2024
1 parent cb95723 commit dac97a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/30x-cancel.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash
source constants.sh
shopt -s extglob
set -ev
set -e

id="${1:?"Must provide the run id to cancel a run"}"

tmp_dir="${TEMP%'/'}/annotate"
control_file=$(find "$tmp_dir" -name "*$id.lock")
control_file=$(find "$tmp_dir" -name "index-*$id.lock")

if [[ ! -e "$control_file" ]]; then
echo "Could not found control file for run $id"
Expand Down

0 comments on commit dac97a5

Please sign in to comment.