Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

(no bug) exit if any table fails to import

  • Loading branch information...
commit a08eea160610229eb0527efa24de2932f21f3ac3 1 parent d8ab662
Robert Helmer rhelmer authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 tools/dataload/import.sh
6 tools/dataload/import.sh
View
@@ -5,4 +5,10 @@ TABLES="daily_crash_codes os_names os_name_matches process_types products releas
for table in $TABLES
do
psql -c "COPY $table FROM '`pwd`/${table}.csv' WITH CSV HEADER" breakpad
+ exit_code=$?
+ if [ $exit_code != 0 ]
+ then
+ echo "Failed to import ${table}"
+ exit $exit_code
+ fi
done
Please sign in to comment.
Something went wrong with that request. Please try again.