File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/cursorless-vscode/scripts Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,12 @@ if ! command -v gh &>/dev/null; then
1616 exit 1
1717fi
1818
19+ # Ensure VSCode 'code' command is installed
20+ if ! command -v code & > /dev/null; then
21+ echo " VSCode 'code' command not found; see https://code.visualstudio.com/docs/editor/command-line#_launching-from-command-line"
22+ exit 1
23+ fi
24+
1925pr_number=" $1 "
2026repo=" cursorless-dev/cursorless"
2127
@@ -27,8 +33,8 @@ if [[ $checks == *still-running ]]; then
2733fi
2834
2935# 2. Get desired check run (ubuntu-latest, stable)
30- check_number=$( echo " $checks " | fgrep ' Test (ubuntu-latest, stable)' | cut -d / -f8)
31- echo " Downloading vsix for PR $pr_number From check $check_number "
36+ check_number=$( echo " $checks " | grep -F ' Test (ubuntu-latest, stable)' | cut -d / -f8)
37+ echo " Downloading vsix for PR $pr_number from check $check_number "
3238
3339# Temp directory to put downloaded extension
3440tmpdir=$( mktemp -d 2> /dev/null || mktemp -d -t ' cursorless-vsix' )
@@ -38,7 +44,7 @@ function finish {
3844trap finish EXIT
3945
4046# 3. Download extension vsix
41- gh run download $check_number --repo " $repo " --name vsix --dir " $tmpdir "
47+ gh run download " $check_number " --repo " $repo " --name vsix --dir " $tmpdir "
4248
4349# 4. Uninstall production cursorless
4450code --uninstall-extension pokey.cursorless || echo " Cursorless not currently installed"
You can’t perform that action at this time.
0 commit comments