Skip to content

Commit

Permalink
Remove .bak files created by sed
Browse files Browse the repository at this point in the history
  • Loading branch information
code-asher committed Aug 2, 2022
1 parent c03bad3 commit b22e444
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/build/build-vscode.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ set -euo pipefail
MINIFY=${MINIFY-true}

delete-bin-script() {
rm "lib/vscode-reh-web-linux-x64/bin/$1"
rm -f "lib/vscode-reh-web-linux-x64/bin/$1"
}

copy-bin-script() {
Expand All @@ -27,6 +27,8 @@ copy-bin-script() {
# Fix Node path on Windows.
sed -i.bak 's/^set ROOT_DIR=\(.*\)$/set ROOT_DIR=%~dp0..\\..\\..\\..\r\nset VSROOT_DIR=\1/g' "$dest"
sed -i.bak 's/%ROOT_DIR%\\out/%VSROOT_DIR%\\out/g' "$dest"

rm "$dest.bak"
}

main() {
Expand Down Expand Up @@ -85,7 +87,7 @@ EOF
# this because we have an NPM package that could be installed on any platform.
# The correct platform dependencies and scripts will be installed as part of
# the post-install during `npm install` or when building a standalone release.
yarn gulp "vscode-reh-web-linux-x64${MINIFY:+-min}"
# yarn gulp "vscode-reh-web-linux-x64${MINIFY:+-min}"

# Reset so if you develop after building you will not be stuck with the wrong
# commit (the dev client will use `oss-dev` but the dev server will still use
Expand Down

0 comments on commit b22e444

Please sign in to comment.