Permalink
Browse files

error checking in install script

  • Loading branch information...
1 parent 609218a commit 894b25efc23bff8eed392624677889acc68ae45b @replay committed Jan 8, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 install.sh
View
10 install.sh
@@ -9,14 +9,14 @@ then
fi
echo "preparing directory ${INSTALL_PATH}"
-mkdir ${INSTALL_PATH}
+mkdir ${INSTALL_PATH} || exit 1
-cp ./carbon_server.conf ${INSTALL_PATH}
-cp ./generic_carbon_client.pl ${INSTALL_PATH}
+cp ./carbon_server.conf ${INSTALL_PATH} || exit 1
+cp ./generic_carbon_client.pl ${INSTALL_PATH} || exit 1
-mkdir -p ${INSTALL_PATH}/plugins/execution_states
+mkdir -p ${INSTALL_PATH}/plugins/execution_states || exit 1
-chmod 777 ${INSTALL_PATH}/plugins/execution_states
+chmod 777 ${INSTALL_PATH}/plugins/execution_states || exit 1
echo "done!"

0 comments on commit 894b25e

Please sign in to comment.