Permalink
Browse files

juis_check: make it work on MacOS X again (#20)

* juis_check: workaround for 'expr' error on BSD systems ...

if a regex quantifier (+) is used

* juis_check: more trouble with 'expr' on BSD systems
  • Loading branch information...
PeterPawn committed Dec 15, 2018
1 parent 734f570 commit 3a5570a6782321b024defa46d3750e01b8c5fe68
Showing with 2 additions and 2 deletions.
  1. +2 −2 juis/juis_check
@@ -1119,7 +1119,7 @@ replace_in_file()
#######################################################################################################
get_decimal_value()
(
expr "$1" : "0*\([0-9]\+\)"
expr "$1" : "0*\([1-9]*[0-9]\)"
)
#######################################################################################################
# #
@@ -1149,7 +1149,7 @@ split_version_number()
else
s=0
fi
elif [ -z "$(expr \( "$c" : "\([A-Za-z]\)" \) )" ]; then
elif [ "$c" = "-" ] || [ -z "$(expr \( "$c" : "\([A-Za-z]\)" \) )" ]; then
if [ "$c" = "[" ]; then
o=1
elif [ "$c" = "]" ]; then

0 comments on commit 3a5570a

Please sign in to comment.