Skip to content
Merged
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
24 changes: 9 additions & 15 deletions scripts/devloop_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1838,20 +1838,16 @@ view_log="$work/view.log"
mkdir -p "$view_bin"
cat > "$view_bin/glow" <<'GLOW'
#!/usr/bin/env bash
{
printf 'glow'
for arg in "$@"; do printf ' <%s>' "$arg"; done
printf '\n'
} >> "$DEVLOOP_VIEW_LOG"
line="glow"
for arg in "$@"; do line="$line <$arg>"; done
printf '%s\n' "$line" >> "$DEVLOOP_VIEW_LOG"
printf '%s\n' "rendered markdown"
GLOW
cat > "$view_bin/gum" <<'GUM'
#!/usr/bin/env bash
{
printf 'gum'
for arg in "$@"; do printf ' <%s>' "$arg"; done
printf '\n'
} >> "$DEVLOOP_VIEW_LOG"
line="gum"
for arg in "$@"; do line="$line <$arg>"; done
printf '%s\n' "$line" >> "$DEVLOOP_VIEW_LOG"
cat >/dev/null
GUM
chmod +x "$view_bin/glow" "$view_bin/gum"
Expand All @@ -1877,11 +1873,9 @@ not_contains "$(cat "$view_log")" "glow" "markdown view absent glow"
contains "$(cat "$view_log")" "gum <pager>" "markdown view absent glow fallback"
cat > "$view_bin/glow" <<'GLOW'
#!/usr/bin/env bash
{
printf 'glow'
for arg in "$@"; do printf ' <%s>' "$arg"; done
printf '\n'
} >> "$DEVLOOP_VIEW_LOG"
line="glow"
for arg in "$@"; do line="$line <$arg>"; done
printf '%s\n' "$line" >> "$DEVLOOP_VIEW_LOG"
printf '%s\n' "rendered markdown"
GLOW
chmod +x "$view_bin/glow"
Expand Down
Loading