diff options
author | midipix <writeonce@midipix.org> | 2019-10-20 15:46:04 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-20 16:11:22 +0000 |
commit | 5ca30b9d4a95fb640c4f67f75b44a98bc0052e9e (patch) | |
tree | 7cc8ec709f053aaf6c156213913b732b9586018c /sofort/tools | |
parent | ea098e4366992f26d6e98b3d522ee24e6b7fa1ce (diff) | |
download | w32lib-5ca30b9d4a95fb640c4f67f75b44a98bc0052e9e.tar.bz2 w32lib-5ca30b9d4a95fb640c4f67f75b44a98bc0052e9e.tar.xz |
build system: employ the cd -- <dir> idiom for good measure.
Diffstat (limited to 'sofort/tools')
-rwxr-xr-x | sofort/tools/version.sh | 4 |
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 |