Add set -eux

This script should be set -e. Also added -ux for good measure. On RHEL,
os-refresh-config was failing to run due to a missing requirements.txt line on
argparse (separate patch), however the failure was not failing the image build
b/c this script was not -e.

Change-Id: Id36d61442d8104cada8346f47e63858cf7f08096
This commit is contained in:
James Slagle 2014-02-27 07:27:21 -05:00
parent a41b6732a6
commit 4c60c96172
1 changed files with 3 additions and 0 deletions

View File

@ -1,4 +1,7 @@
#!/bin/bash
set -eux
SCRIPT_BASE=$(os-refresh-config --print-base)
SCRIPT_SOURCE=$(dirname $0)/../os-refresh-config
rsync -r $SCRIPT_SOURCE/ $SCRIPT_BASE/