summaryrefslogtreecommitdiffstats
path: root/scripts/get-version
diff options
context:
space:
mode:
authorGravatar Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2013-02-24 10:48:03 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-24 06:42:14 -0800
commit77a6b18a7158e3239f1dfcb79a73bf6ea8f4b620 (patch)
tree5157fd4015bcac5b6d940f96aa5ffcc573202be8 /scripts/get-version
parent069c36c95ca14ef1d4e8c14ea0a674546f1c03d5 (diff)
downloadsubsurface-77a6b18a7158e3239f1dfcb79a73bf6ea8f4b620.tar.gz
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>
Diffstat (limited to 'scripts/get-version')
-rwxr-xr-xscripts/get-version4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/get-version b/scripts/get-version
index 4da018568..d4fb0b769 100755
--- a/scripts/get-version
+++ b/scripts/get-version
@@ -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
;;