Skip to content

Commit

Permalink
juis_check: make it work on MacOS X again (#20)
Browse files Browse the repository at this point in the history
* 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 3a5570a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions juis/juis_check
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ replace_in_file()
#######################################################################################################
get_decimal_value()
(
expr "$1" : "0*\([0-9]\+\)"
expr "$1" : "0*\([1-9]*[0-9]\)"
)
#######################################################################################################
# #
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3a5570a

Please sign in to comment.