mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 01:34:12 +00:00
Replace bashisms with posix shell alternatives.
Signed-off-by: Tobias Heider <me@tobhe.de>
This commit is contained in:
parent
2cb6cb46ca
commit
8dd002d4f7
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ if [ -n "$M1N1_VERSION_TAG" ]; then
|
|||
version="$M1N1_VERSION_TAG"
|
||||
elif [ -e ".git" ]; then
|
||||
version="$(git describe --tags --always --dirty)"
|
||||
elif [ "${dirbase:0:5}" == "m1n1-" ]; then
|
||||
version="${dirbase:5}"
|
||||
elif [ "$(echo "${dirbase}" | cut -c1-5)" = "m1n1-" ]; then
|
||||
version=$(echo "${dirbase}" | cut -c6-)
|
||||
version="v${version##v}"
|
||||
else
|
||||
version="unknown"
|
||||
|
|
Loading…
Reference in a new issue