Skip to content

Commit

Permalink
Fix mktar-iroha.sh based on develop
Browse files Browse the repository at this point in the history
  • Loading branch information
motxx committed Mar 2, 2017
1 parent 1d3e46b commit 75773e1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docker/dev/scripts/mktar-iroha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,19 @@ if [ -z ${IROHA_RELEASE} ]; then
exit 1
fi

cd ${IROHA_RELEASE} || (echo "[-] No folder ${IROHA_RELEASE}" && exit 1)
if [ -z ${IROHA_BUILD} ]; then
echo "[FATAL][mktar-iroha.sh] Empty variable IROHA_BUILD"
exit 1
fi


if [ -z ${IROHA_HOME} ]; then
echo "[FATAL][mktar-iroha.sh] Empty variable IROHA_HOME"
exit 1
fi

mkdir -p $IROHA_RELEASE
cd ${IROHA_RELEASE}
rsync -av ${IROHA_BUILD}/bin $IROHA_RELEASE && \
rsync -av ${IROHA_BUILD}/lib $IROHA_RELEASE && \
rsync -av ${IROHA_BUILD}/my_test_bin $IROHA_RELEASE && \
Expand Down

0 comments on commit 75773e1

Please sign in to comment.