Fixing build script variable comparisons to include quotes

Signed-off-by: Chip Childers <chipchilders@apache.org>
This commit is contained in:
Chip Childers 2013-04-21 15:37:00 -04:00
parent 5b4223a3b3
commit 2c36aa8fcd
1 changed files with 6 additions and 6 deletions

View File

@ -64,8 +64,8 @@ echo "Using version: $version"
echo "Using source directory: $sourcedir"
echo "Using output directory: $outputdir"
echo "Using branch: $branch"
if [ $tag == 'yes' ]; then
if [ $certid == 'X' ]; then
if [ "$tag" == 'yes' ]; then
if [ "$certid" == 'X' ]; then
echo "Tagging the branch with the version number, and signing the branch with your default certificate."
else
echo "Tagging the branch with the version number, and signing the branch with certificate ID $certid."
@ -107,7 +107,7 @@ bzip2 $outputdir/apache-cloudstack-$version-src.tar
cd $outputdir
echo 'armor'
if [$certid == 'X' ]; then
if ["$certid" == 'X' ]; then
gpg -v --armor --output apache-cloudstack-$version-src.tar.bz2.asc --detach-sig apache-cloudstack-$version-src.tar.bz2
else
gpg -v --default-key $certid --armor --output apache-cloudstack-$version-src.tar.bz2.asc --detach-sig apache-cloudstack-$version-src.tar.bz2
@ -122,17 +122,17 @@ gpg -v --print-md SHA512 apache-cloudstack-$version-src.tar.bz2 > apache-cloudst
echo 'verify'
gpg -v --verify apache-cloudstack-$version-src.tar.bz2.asc apache-cloudstack-$version-src.tar.bz2
if [ $tag == 'yes' ]; then
if [ "$tag" == 'yes' ]; then
echo 'tag'
cd $sourcedir
if [ $certid == 'X' ]; then
if [ "$certid" == 'X' ]; then
git tag -s $version -m "Tagging release $version on branch $branch."
else
git tag -u $certid -s $version -m "Tagging release $version on branch $branch."
fi
fi
if [$committosvn == 'yes' ]; then
if ["$committosvn" == 'yes' ]; then
echo 'committing artifacts to svn'
rm -Rf /tmp/cloudstack-dev-dist
cd /tmp