Add pipe to awk for RIVER variable

This commit is contained in:
Andrew Scott 2023-12-24 02:46:42 -05:00
parent b3b7209ffa
commit d545bb85c9
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -1,5 +1,5 @@
#!/bin/bash
RIVER=`ps -C river`
RIVER=`ps -C river | awk '/river/'`
[[ $RIVER != "" ]] && riverctl spawn 'reset' && riverctl exit || echo "River is not running."