ref: 48a7e25032f82b7283bc2f37c525f96f46524a49
parent: 5c3cc55614e2f7eb2f911269d6cde38dcf3633f1
author: Timothy B. Terriberry <territim@amazon.com>
date: Wed Nov 10 10:24:48 EST 2021
Abort download_model.sh on errors. Otherwise, in addition to preventing autogen.sh from failing cleanly, the touch command at the end creates a spurious file named 'src/nnet_data.[ch]' (because the globbing fails if the files do not already exist).
--- a/dnn/download_model.sh
+++ b/dnn/download_model.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+set -e
model=lpcnet_data-$1.tar.gz
--
⑨