diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-03-30 20:53:48 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-03-30 20:53:48 -0400 |
commit | fb33ed3e6f9afce7dc2308c0580b13a569372a3c (patch) | |
tree | acc162dc48af5525f5f1c3fd3b3ae3efba93c572 /.local/bin/updatestatus | |
parent | 02f5f552fcdeef5980068abb34a0ad203cb314e1 (diff) |
Gentoo update status script
Diffstat (limited to '.local/bin/updatestatus')
-rwxr-xr-x | .local/bin/updatestatus | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/bin/updatestatus b/.local/bin/updatestatus new file mode 100755 index 0000000..aedbb84 --- /dev/null +++ b/.local/bin/updatestatus @@ -0,0 +1,14 @@ +#!/bin/sh + +time="$($1)" +[ -z "$1" ] && time="5" + +# Prevent "no such file or directory" on 1st run +genlop -c >/tmp/genlop + +while true; do + cat /tmp/genlop + sleep "$time" + genlop -c >/tmp/genlop + clear +done |