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
16
16
exit 1
17
17
fi
18
18
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
+
19
25
pr_number=" $1 "
20
26
repo=" cursorless-dev/cursorless"
21
27
@@ -27,8 +33,8 @@ if [[ $checks == *still-running ]]; then
27
33
fi
28
34
29
35
# 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 "
32
38
33
39
# Temp directory to put downloaded extension
34
40
tmpdir=$( mktemp -d 2> /dev/null || mktemp -d -t ' cursorless-vsix' )
@@ -38,7 +44,7 @@ function finish {
38
44
trap finish EXIT
39
45
40
46
# 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 "
42
48
43
49
# 4. Uninstall production cursorless
44
50
code --uninstall-extension pokey.cursorless || echo " Cursorless not currently installed"
You can’t perform that action at this time.
0 commit comments