Skip to content

Commit

Permalink
fixup! GitHub issue template: Don't require steps to reproduce
Browse files Browse the repository at this point in the history
Fix tmpfile sometimes removed before opened.

xdg-open returns immediately, so there's a race between gedit showing
the file and rm removing it.
  • Loading branch information
adombeck committed Aug 22, 2024
1 parent 6dc9e0d commit 40c32a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ body:
```bash
TMPFILE=$(mktemp authd-system-info-XXXXXX.md)
if command -v xdg-open > /dev/null && [ -n "${DISPLAY:-}" ]; then authd_editor=xdg-open; elif [ -n "${EDITOR:-}" ]; then authd_editor=$EDITOR; else authd_editor=editor; fi
cat > "$TMPFILE" <<EOF && $authd_editor "$TMPFILE" && rm -f "$TMPFILE"
cat > "$TMPFILE" <<EOF && $authd_editor "$TMPFILE"
#### authd version
\`\`\`
$(/usr/libexec/authd version)
Expand Down

0 comments on commit 40c32a9

Please sign in to comment.