feat: add release number (#1192)

This commit is contained in:
Baptiste Augrain
2022-08-16 13:51:45 +02:00
committed by GitHub
parent ed5a695d2c
commit 118ea7993d
16 changed files with 336 additions and 99 deletions

View File

@@ -2,6 +2,8 @@
#All common functions can be added to this file
exists() { type -t "$1" > /dev/null 2>&1; }
is_gnu_sed () {
sed --version >/dev/null 2>&1
}
@@ -14,3 +16,15 @@ replace () {
sed -i '' -E "${1}" "${2}"
fi
}
if ! exists gsed; then
if is_gnu_sed; then
function gsed() {
sed -i -E "$@"
}
else
function gsed() {
sed -i '' -E "$@"
}
fi
fi