Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fail if install fails

Error from install was ignored, catch it and exit with an error
This make sure that build fails if some files are not built
  • Loading branch information...
commit 9a54f4ad64781a10ab23808fc71495974f0331f7 1 parent 8cf9f90
@freddy77 freddy77 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  scripts/install.sh
View
2  scripts/install.sh
@@ -32,7 +32,7 @@ SCRIPTS_DIR=`dirname ${0}`
BASE_PATH=`${SCRIPTS_DIR}/base-path xapi.conf`
for FILE in ${FILES}; do
- ${INSTALL} ${FILE} ${DEST}
+ ${INSTALL} ${FILE} ${DEST} || exit 1
if [ -d ${DEST} ]; then
BASENAME=`basename ${FILE}`
NEWFILE="${DEST}/${BASENAME}"
Please sign in to comment.
Something went wrong with that request. Please try again.