Fixes #4382 -- Use awk instead of gawk for more universal support.
This commit is contained in:
parent
3cb73fe34f
commit
8b113ace37
|
@ -117,7 +117,7 @@ __dotenv_cmd=.env
|
|||
|
||||
# Shortcut to convert semver version (x.yyy.zzz) into a comparable number.
|
||||
version-number() {
|
||||
echo "$@" | gawk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'
|
||||
echo "$@" | awk -F. '{ printf("%03d%03d%03d\n", $1,$2,$3); }'
|
||||
}
|
||||
|
||||
# This is a general-purpose function to ask Yes/No questions in Bash, either
|
||||
|
|
Loading…
Reference in New Issue