We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e892afd commit b1e7b65Copy full SHA for b1e7b65
mimic-iv/buildmimic/duckdb/import_duckdb.sh
@@ -57,8 +57,14 @@ elif [ -n "$3" ]; then
57
yell "import.sh takes a maximum of two arguments."
58
die "Usage: ./import_duckdb.sh mimic_data_dir [output_db]"
59
elif [ -s "$OUTFILE" ]; then
60
- yell "File \"$OUTFILE\" already exists."
61
- die "Please specify an alternate output db name."
+ yell "File \"$OUTFILE\" already exists."
+ read -p "Continue? (y/d/n) 'y' continues, 'd' deletes original file, 'n' stops: " yn
62
+ case $yn in
63
+ [Yy]* ) ;; # OK
64
+ [Nn]* ) exit;;
65
+ [Dd]* ) rm "$OUTFILE";;
66
+ * ) die "Unrecognized input.";;
67
+ esac
68
fi
69
70
# we will copy the postgresql create.sql file, and apply regex
0 commit comments