diff options
| author | Julian Hurst <ark@mansus.space> | 2024-09-15 02:30:04 +0200 |
|---|---|---|
| committer | Julian Hurst <ark@mansus.space> | 2024-09-15 02:30:04 +0200 |
| commit | f9837e219135bd857afd88f60f213ef9c8c8f61c (patch) | |
| tree | cf28ee690324d703bc6e870682b49b224ad33ccf /new.sh | |
| download | bugtracker-f9837e219135bd857afd88f60f213ef9c8c8f61c.tar.gz | |
Initial commit
Diffstat (limited to 'new.sh')
| -rwxr-xr-x | new.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/bin/sh + +test -f .current || echo -n 1 > .current + +current=$(cat .current) + +if test $# -eq 2 +then + echo "$current. $1" >> open +else + echo "$current. " >> open + vim open +fi +echo -n "$((current + 1))" > .current |
