From 3fe17cfef67dcf03580ba0ab6f025f14b3b3871f Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Wed, 4 Dec 2024 14:38:27 -0500 Subject: [PATCH] Ensure rollback exists --- scripts/insert-nids.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/insert-nids.sh b/scripts/insert-nids.sh index d2409ca..796a5cc 100755 --- a/scripts/insert-nids.sh +++ b/scripts/insert-nids.sh @@ -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]}"