diff --git a/utils/build-galaxy-release.sh b/utils/build-galaxy-release.sh
index 3c9c609a8baade13d96eda0f415aac6153f1c32b..a1681e05171d9c51e1629718aa0511bd94d42b2d 100755
--- a/utils/build-galaxy-release.sh
+++ b/utils/build-galaxy-release.sh
@@ -35,7 +35,7 @@ all=0
 keep=0
 install=0
 path=
-offline=0
+offline=
 galaxy_version=
 while getopts "ahkio:p:" arg; do
     case $arg in
@@ -127,7 +127,7 @@ sed -i -e "s/name: .*/name: \"$name\"/" galaxy.yml
 find . -name "*~" -exec rm {} \;
 
 
-if [ $offline == 0 ]; then
+if [ $offline != 1 ]; then
     echo "Creating CHANGELOG.rst..."
     "$(dirname "$0")/changelog" --galaxy > CHANGELOG.rst
     echo -e "\033[ACreating CHANGELOG.rst... \033[32;1mDONE\033[0m"