fix boolean check

Change-Id: I1f28dc88fb2055b56d7acaa2adc0f7fc0a78f845
diff --git a/update-package.groovy b/update-package.groovy
index 31e46cf..e2ce9e4 100644
--- a/update-package.groovy
+++ b/update-package.groovy
@@ -27,12 +27,11 @@
           salt.runSaltProcessStep(saltMaster, UPDATE_SERVERS, 'pkg.list_upgrades', [], null, true)
         }
 
-        if (UPDATE_COMMIT == true) {
+        if (UPDATE_COMMIT.toBoolean() == true) {
           stage("Update packages") {
             if (UPDATE_PACKAGES == "") {
               salt.runSaltProcessStep(saltMaster, UPDATE_SERVERS, 'pkg.install', [], null, true)
-            }
-            else {
+            } else {
               salt.runSaltProcessStep(saltMaster, UPDATE_SERVERS, 'pkg.install', UPDATE_PACKAGES.split(' '), null, true)
             }
           }