mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
Replace the '==' bashism with the posix equivalent '='.
The quotes are not needed either (nothing to expand there). Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
069c36c95c
commit
77a6b18a71
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ case $os in
|
|||
# do we need to add another digit?
|
||||
# We know there are 1 or 2 dots in $v, so if it's just one
|
||||
# or we are trying to get to 4, add one digit
|
||||
if [ ${#dots} -eq 1 ] || [ $os == "win" ]; then
|
||||
if [ ${#dots} -eq 1 ] || [ $os = win ]; then
|
||||
if [ $# -gt 1 ]; then
|
||||
v=$v.$2
|
||||
else
|
||||
|
@ -48,7 +48,7 @@ case $os in
|
|||
fi
|
||||
fi
|
||||
# and if it was just one dot and we want 4, at another 0
|
||||
if [ ${#dots} -eq 1 ] && [ $os == "win" ]; then
|
||||
if [ ${#dots} -eq 1 ] && [ $os = win ]; then
|
||||
v=$v.0
|
||||
fi
|
||||
;;
|
||||
|
|
Loading…
Add table
Reference in a new issue