changeset 592:242d4955e902

Simplify expressions.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Sat, 21 Nov 2015 23:10:50 +0200
parents c35f03182576
children d88425a757d6
files hg/hgsyncee hg/hgsyncew
diffstat 2 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hg/hgsyncee	Sat Nov 21 23:09:54 2015 +0200
+++ b/hg/hgsyncee	Sat Nov 21 23:10:50 2015 +0200
@@ -118,8 +118,8 @@
 # Main work.
 # ##########
 
-case x${1-} in
-    x-h|x--help)
+case "${1-}" in
+    -h|--help)
         Usage
         exit 0;
         ;;
--- a/hg/hgsyncew	Sat Nov 21 23:09:54 2015 +0200
+++ b/hg/hgsyncew	Sat Nov 21 23:10:50 2015 +0200
@@ -121,12 +121,12 @@
 
 NEED_PUSH=n
 
-case x${1-} in
-    x-h|x--help)
+case "${1-}" in
+    -h|--help)
         Usage
         exit 0;
         ;;
-    x--push)
+    --push)
         NEED_PUSH=y
         ;;
 esac