Skip to content

Commit 1ed4e58

Browse files
committed
test(installer): match concise shell errors
1 parent 05ffdc9 commit 1ed4e58

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test-standalone-install.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,15 +237,15 @@ jobs:
237237
OUTPUT=$(append_source_to_file "$SHELL_CONFIG" '. "$HOME/.vite-plus/env"' 2>&1) || RESULT=$?
238238
test "$RESULT" -eq 3
239239
echo "$OUTPUT" | grep -F "trace"
240-
echo "$OUTPUT" | grep -F "Vite+ cannot write"
240+
echo "$OUTPUT" | grep -F "permission denied"
241241
242242
CI=false
243243
unset VP_LOG
244244
RESULT=0
245245
OUTPUT=$(append_source_to_file "$SHELL_CONFIG" '. "$HOME/.vite-plus/env"' 2>&1) || RESULT=$?
246246
test "$RESULT" -eq 3
247247
echo "$OUTPUT" | grep -F "warn"
248-
echo "$OUTPUT" | grep -F "Vite+ cannot write"
248+
echo "$OUTPUT" | grep -F "permission denied"
249249
250250
- name: Incomplete directory overrides are rejected
251251
run: |
@@ -563,7 +563,7 @@ jobs:
563563
# CI gets PATH from the runner environment.
564564
# VP_LOG=trace shows shell file errors.
565565
# Normal output does not show these errors.
566-
if echo "$output" | grep -Eqi "Vite[+] cannot (write|create)|Shell configuration:|Some shells still need manual setup"; then
566+
if echo "$output" | grep -Eqi "permission denied|Shell configuration:|Some shells still need manual setup"; then
567567
echo "Installer printed shell configuration details in CI"
568568
exit 1
569569
fi

0 commit comments

Comments
 (0)