sh: read state file directly instead of parsing cfg
This commit is contained in:
parent
284f1969d8
commit
b07fcec765
|
|
@ -29,7 +29,7 @@ fn cfg_get {
|
|||
}
|
||||
|
||||
fn is_idle {
|
||||
~ `{cfg_get state} idle
|
||||
~ `{cat $S/state >[2]/dev/null} idle
|
||||
}
|
||||
|
||||
fn show_new {
|
||||
|
|
|
|||
Loading…
Reference in New Issue