Browse Source

bin/st: prevent from hanging on stash output

Brennen Bearnes 2 months ago
parent
commit
4f56641c6a
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      home/bin/st

+ 9
- 1
home/bin/st View File

@@ -1,4 +1,12 @@
1 1
 #!/bin/sh
2 2
 
3 3
 # myrepos - get stats
4
-mr -m stat
4
+
5
+# I'm doing the silly output-to-tempfile thing to get around a bug where mr
6
+# hangs if there's stuff in a stash - I think because something is invoking
7
+# a pager.  At some point I should find out if this is a solvable problem.
8
+
9
+output_file=`mktemp`
10
+mr -m stat > "$output_file"
11
+cat "$output_file"
12
+rm "$output_file"

Loading…
Cancel
Save