Check if redshift-gtk exists before trying to run it
This commit is contained in:
parent
c1223b4b23
commit
4e28721b8e
1 changed files with 3 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
pgrep redshift-gtk || { redshift-gtk & }
|
command -v redshift-gtk \
|
||||||
|
&& (pgrep redshift-gtk \
|
||||||
|
|| { redshift-gtk & })
|
||||||
|
|
Loading…
Reference in a new issue