mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-11 16:27:18 +10:00
feat: add release number (#1192)
This commit is contained in:
14
utils.sh
14
utils.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user