diff --git a/scripts/deploy-new-stable-version.sh b/scripts/deploy-new-stable-version.sh
index 3c65c3ae55c602324912c69bb109e17dec36b10a..1bfea63349f07d84c599ec2ab0529d1cdab299d5 100755
--- a/scripts/deploy-new-stable-version.sh
+++ b/scripts/deploy-new-stable-version.sh
@@ -9,6 +9,8 @@
 
 # exit on error
 set -e
+# Output command lines for debugging
+set -x
 
 VERSION=$1
 
@@ -39,7 +41,7 @@ git pull --rebase
 npm install
 npm run jasmine
 if [ ! -z "$(git status --porcelain)" ]
-then 
+then
     echo "commiting changes induced by 'npm install'"
     git commit -a -m "verify dependencies (npm install) before deploying version $VERSION"
 fi
@@ -47,7 +49,7 @@ fi
 # 1.3 version in package.*
 npm version "$VERSION" --allow-same-version --git-tag-version=false
 if [ ! -z "$(git status --porcelain)" ]
-then 
+then
     echo "commiting changes induced by 'npm version'"
     git commit -a -m "update package.* to version $VERSION"
 fi
@@ -80,7 +82,7 @@ fi
 # 2.3 version in package.*
 npm version "$VERSION" --allow-same-version --git-tag-version=false
 if [ ! -z "$(git status --porcelain)" ]
-then 
+then
     echo "commiting changes induced by 'npm version'"
     git commit -a -m "update package.* to version $VERSION"
 fi