Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/changes/unreleased/1756-hosted-drive-opt-l.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
kind: fixed
title: the hosted drive passes on a Mac whose task column starts open
pr: 1756
surface: [build]
invalidates:
- "On a Mac, scripts/hosted-drive.sh failed seven of its fourteen checks whenever the profile's task column started open, which reads as a broken binary. It now recognises the column's opt+l key and passes."
---
6 changes: 5 additions & 1 deletion scripts/hosted-drive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ only_my_file() { [ "$(git -C "$WORK" status --short)" = "?? notes.txt" ]; }
one_copy() { [ "$(copies | wc -l | tr -d ' ')" = "1" ]; }
second_on_the_list() { screen | cut -c119- | grep -q 'write README'; }
first_on_the_list() { screen | cut -c119- | grep -q 'add Mul and Div'; }
column_open() { screen | grep -Eq '│ Tasks [0-9]+.*alt\+l'; }
# THE COLUMN'S KEY IS SPELLED FOR THE KEYBOARD IT IS DRAWN ON: `alt+l` on
# Linux and `opt+l` on a Mac (internal/tui3/chords.go). A needle that knows
# only one spelling reads an open column as closed on the other system, and the
# key pressed to open it closes it instead.
column_open() { screen | grep -Eq '│ Tasks [0-9]+.*(alt|opt)\+l'; }
first_run_home() { [ -f "$WORK/README.md" ] && [ -f "$WORK/muldiv.go" ]; }
one_new_commit() { [ "$(git -C "$WORK" log --oneline | wc -l | tr -d ' ')" = "2" ]; }
my_file_untouched() { [ "$(cat "$WORK/notes.txt")" = "mine, unsaved" ] && only_my_file; }
Expand Down
Loading