]> git.wh0rd.org Git - home.git/commitdiff
redshift-check: reset cwd to / rather than $HOME
authorMike Frysinger <vapier@gentoo.org>
Fri, 25 Dec 2015 01:22:31 +0000 (20:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 25 Dec 2015 01:22:31 +0000 (20:22 -0500)
This way we still work when HOME is unset.

.bin/redshift-check

index b7f2d38ab5eb3e6456f272e222c8b89cc5eda8cc..9481c09d8a4fe0fbb059f173df666d9cd85c56c1 100755 (executable)
@@ -21,7 +21,7 @@ rs() {
 }
 
 main() {
-       cd
+       cd /
        export DISPLAY=:0
 
        while [[ $# -gt 0 ]] ; do