tAdded a default behavior - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 6732dec0599a0473214e47e072d98c11a48cad25
(DIR) parent 544edd27e2b74149e305d47670f4978b7c9a37c6
(HTM) Author: z3bra <willy@mailoo.org>
Date: Tue, 29 Apr 2014 08:18:00 +0200
Added a default behavior
Diffstat:
M utf8.sh | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/utf8.sh b/utf8.sh
t@@ -36,12 +36,10 @@ function unichr {
min=0xe000
max=0xe1a0
-if test $# -gt 1; then
- if test $# -eq 2; then
- min=$1
- max=$2
- fi
-else
+if test $# -eq 2; then
+ min=$1
+ max=$2
+elif test "$1" = "-h"; then
usage
exit 1
fi