mirror of
https://github.com/VSCodium/vscodium.git
synced 2026-04-23 19:40:14 +10:00
fix: apply replacement to all [skip ci]
This commit is contained in:
11
utils.sh
11
utils.sh
@@ -12,11 +12,11 @@ apply_patch() {
|
|||||||
echo applying patch: "$1";
|
echo applying patch: "$1";
|
||||||
# grep '^+++' "$1" | sed -e 's#+++ [ab]/#./vscode/#' | while read line; do shasum -a 256 "${line}"; done
|
# grep '^+++' "$1" | sed -e 's#+++ [ab]/#./vscode/#' | while read line; do shasum -a 256 "${line}"; done
|
||||||
|
|
||||||
replace "s|!!APP_NAME!!|${APP_NAME}|" "$1"
|
replace "s|!!APP_NAME!!|${APP_NAME}|g" "$1"
|
||||||
replace "s|!!APP_NAME_LC!!|${APP_NAME_LC}|" "$1"
|
replace "s|!!APP_NAME_LC!!|${APP_NAME_LC}|g" "$1"
|
||||||
replace "s|!!BINARY_NAME!!|${BINARY_NAME}|" "$1"
|
replace "s|!!BINARY_NAME!!|${BINARY_NAME}|g" "$1"
|
||||||
replace "s|!!GH_REPO_PATH!!|${GH_REPO_PATH}|" "$1"
|
replace "s|!!GH_REPO_PATH!!|${GH_REPO_PATH}|g" "$1"
|
||||||
replace "s|!!ORG_NAME!!|${ORG_NAME}|" "$1"
|
replace "s|!!ORG_NAME!!|${ORG_NAME}|g" "$1"
|
||||||
|
|
||||||
if ! git apply --ignore-whitespace "$1"; then
|
if ! git apply --ignore-whitespace "$1"; then
|
||||||
echo failed to apply patch "$1" >&2
|
echo failed to apply patch "$1" >&2
|
||||||
@@ -31,7 +31,6 @@ is_gnu_sed () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
replace() {
|
replace() {
|
||||||
# echo "${1}"
|
|
||||||
if is_gnu_sed; then
|
if is_gnu_sed; then
|
||||||
sed -i -E "${1}" "${2}"
|
sed -i -E "${1}" "${2}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user