summaryrefslogtreecommitdiff
path: root/sofort/tools
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-10-20 15:46:04 +0000
committermidipix <writeonce@midipix.org>2019-10-20 16:11:22 +0000
commit15136ce5c5f672ee4903fcc81c2cc6189be58d8c (patch)
tree32bbd1c817fcede38a22c64cab88e7cc6c6ec1bc /sofort/tools
parent8119b5dd7911704d7afd9e72a572745f0fff59e3 (diff)
downloadsbpython3-15136ce5c5f672ee4903fcc81c2cc6189be58d8c.tar.bz2
sbpython3-15136ce5c5f672ee4903fcc81c2cc6189be58d8c.tar.xz
build system: employ the cd -- <dir> idiom for good measure.
Diffstat (limited to 'sofort/tools')
-rwxr-xr-xsofort/tools/version.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sofort/tools/version.sh b/sofort/tools/version.sh
index caf5c5f..61fa364 100755
--- a/sofort/tools/version.sh
+++ b/sofort/tools/version.sh
@@ -51,7 +51,7 @@ if [ -z "$srcdir" ] || [ -z "$output" ] || [ -z "$prefix" ]; then
usage
fi
-cd "$srcdir"
+cd -- "$srcdir"
gitver=$(git rev-parse --verify HEAD 2>/dev/null) || gitver="unknown"
cvdate=$(git show -s --format=%ci $gitver 2>/dev/null) || cvdate=$(date)
@@ -59,7 +59,7 @@ cvdate=$(git show -s --format=%ci $gitver 2>/dev/null) || cvdate=$(date)
vmacro=$(printf '%s' "$prefix"'_GIT_VERSION' | tr '[:lower:]' '[:upper:]')
dmacro=$(printf '%s' "$prefix"'_GIT_DATE ' | tr '[:lower:]' '[:upper:]')
-cd "$workdir"
+cd -- "$workdir"
# three