[Project] fixing release.sh script

This commit is contained in:
Robert von Burg 2014-09-22 22:13:50 +02:00
parent daed7a68f3
commit b96fbc1b9e
2 changed files with 5 additions and 8 deletions

View File

@ -43,10 +43,10 @@ if [ -z "${r}" ] || [ -z "${b}" ] || [ -z "${o}" ] || [ -z "${n}" ] ; then
usage usage
fi fi
#if [ "$(git status --short)" != "" ] ; then if [ "$(git status --short)" != "" ] ; then
# echo "You have uncommitted changes!" echo "You have uncommitted changes!"
# exit 1 exit 1
#fi fi
declare SCRIPT_NAME="${0##*/}" declare SCRIPT_NAME="${0##*/}"
@ -78,7 +78,6 @@ else
echo "NOT pusing to origin." echo "NOT pusing to origin."
fi fi
echo ""
echo "" echo ""
function fail() { function fail() {
@ -132,8 +131,6 @@ if [ $? -ne 0 ] ; then
fail fail
fi fi
echo aaaa
exit 1
# show status # show status
echo -e "\nINFO: Git Status:" echo -e "\nINFO: Git Status:"

View File

@ -87,7 +87,7 @@ done
cd "${root}" cd "${root}"
if ! sed --in-place "s/${old_version}/${new_version}/" li.strolch.dev/createBundle.sh 2>/dev/null ; then if ! sed -i.bck "s/${old_version}/${new_version}/" "li.strolch.dev/createBundle.sh" 2>/dev/null ; then
fail "${root}/li.strolch.dev/createBundle.sh" fail "${root}/li.strolch.dev/createBundle.sh"
fi fi