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]}"