ingest script: filter out too verbose warning
This commit is contained in:
parent
4c8a59e64c
commit
48d1062b4f
3 changed files with 21 additions and 1 deletions
12
data-ingest/i
Executable file
12
data-ingest/i
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -eau -o pipefail
|
||||
|
||||
rc=0
|
||||
# false | false || rc="${PIPESTATUS[@]}"
|
||||
|
||||
|
||||
out=$(echo toto && false) || rc=2
|
||||
|
||||
echo $out
|
||||
echo $?
|
||||
echo $rc
|
|
@ -31,7 +31,12 @@ EOF
|
|||
done
|
||||
echo ""
|
||||
|
||||
sqlite3 "${fullDbPath}" < "${tmpSql}"
|
||||
rc=0
|
||||
sqlite3 "${fullDbPath}" < "${tmpSql}" 2>&1 | grep -v "filling the rest with NULL" || rc="${PIPESTATUS[0]}"
|
||||
if [[ $rc -ne 0 ]]; then
|
||||
echo "Error executing sqlite import"
|
||||
exit "$rc"
|
||||
fi
|
||||
|
||||
echo "[+] Ingesting spatial data."
|
||||
|
||||
|
|
3
data-ingest/j
Normal file
3
data-ingest/j
Normal file
|
@ -0,0 +1,3 @@
|
|||
toto
|
||||
toti
|
||||
toto
|
Loading…
Reference in a new issue