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

View File

@ -87,7 +87,7 @@ done
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"
fi