[screenrecord.sh] Revert pidfile reading command, drop redundant return.
This commit is contained in:
parent
96cd1d5613
commit
6af80db57f
|
@ -27,9 +27,8 @@ pidfile="$XDG_RUNTIME_DIR/screenrecord.pid"
|
|||
filename="$(xdg-user-dir VIDEOS)/ScreenCast_$(date +%F_%T).mp4"
|
||||
|
||||
isrunning() {
|
||||
pid=$(2>/dev/null <"$pidfile")
|
||||
pid=$(cat -- "$pidfile" 2>/dev/null)
|
||||
test $? && kill -s 0 -- "$pid" 2>/dev/null
|
||||
return $?
|
||||
}
|
||||
|
||||
usage() {
|
||||
|
|
Loading…
Reference in New Issue