Skip to content

Commit

Permalink
Ensure rollback exists
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Dec 4, 2024
1 parent ab3fd65 commit 3fe17cf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/insert-nids.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

set -eou pipefail

if [ ! -f islandora_workbench/input_data/rollback.csv ]; then
echo "rollback.csv does not exist"
exit 0
fi

regex='^(https:\/\/docs\.google\.com\/spreadsheets\/d\/[a-zA-Z0-9_-]+)'
if [[ "$URL" =~ $regex ]]; then
URL="${BASH_REMATCH[1]}"
Expand Down

0 comments on commit 3fe17cf

Please sign in to comment.