nfvbenchvm: abort build on error
[nfvbench.git] / nfvbenchvm / dib / elements / nfvbenchvm / post-install.d / 03-copy-rc-local
index 3311530..24facec 100755 (executable)
@@ -1,8 +1,11 @@
 #!/bin/bash
 
+# Stop on error
+set -euo pipefail
+
 # set accurate rc.local file corresponding to current image built
 if [ $DIB_DEV_IMAGE = "loopvm" ]; then
     mv /etc/rc.d/rc.local.loopvm /etc/rc.d/rc.local
 else
     mv /etc/rc.d/rc.local.generator /etc/rc.d/rc.local
-fi
\ No newline at end of file
+fi