diff --git a/patch-control.sh b/patch-control.sh
index 93c9d72e6308b7b369634b8162245292cbdb99ed..afa559480065b50dd7cb48b145e5ba979795e742 100644
--- a/patch-control.sh
+++ b/patch-control.sh
@@ -114,7 +114,7 @@ while [ 1 ]; do
                        --column="Minutes" \
                        FALSE Cancel FALSE 5 TRUE 10 FALSE 20`
 
-  if [ "${run_duration}" == "Cancel" ]; then
+  if [ "${run_duration}" != "Cancel" ]; then
     break
   fi