mirror of
https://github.com/VSCodium/vscodium
synced 2024-08-27 21:09:56 +00:00
![swinder0161](/assets/img/avatar_default.png)
* Add support to use GNU sed installed in mac osx * Move common functions to utils.sh Co-authored-by: Swinder Pal Singh Juneja <swinder.juneja@oneplus.com>
17 lines
219 B
Bash
Executable file
17 lines
219 B
Bash
Executable file
#!/bin/bash
|
|
|
|
#All common functions can be added to this file
|
|
|
|
is_gnu_sed () {
|
|
sed --version >/dev/null 2>&1
|
|
}
|
|
|
|
replace () {
|
|
echo $1
|
|
if is_gnu_sed; then
|
|
sed -i -E "$1" $2
|
|
else
|
|
sed -i '' -E "$1" $2
|
|
fi
|
|
}
|