diff options
author | midipix <writeonce@midipix.org> | 2019-10-20 15:46:04 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-10-20 16:11:20 +0000 |
commit | f7055a3cf8533ea79f5ab90f03cab43fc929b07e (patch) | |
tree | 8c9d451f5ac9d8d6eb68dd16e92861f20d4f8425 | |
parent | 1046042743f18488cdd199f40f8f91f2cd7dc7b8 (diff) | |
download | dalist-f7055a3cf8533ea79f5ab90f03cab43fc929b07e.tar.bz2 dalist-f7055a3cf8533ea79f5ab90f03cab43fc929b07e.tar.xz |
build system: employ the cd -- <dir> idiom for good measure.
-rwxr-xr-x | configure | 2 | ||||
-rwxr-xr-x | sofort/tools/version.sh | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -49,7 +49,7 @@ warning_msg() init_vars() { - mb_project_dir=$(cd "$(dirname "$mb_script")" ; pwd -P) + mb_project_dir=$(cd -- "$(dirname "$mb_script")" ; pwd -P) mb_pwd=$(pwd -P) mb_custom_cfgdefs_args='' 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 |