Fix null check for lock_timeout

This commit fixes an issue with the validating the `lock_timeout` value. The current implementation would complain if `lock_timeout` value is null.
This commit is contained in:
Ibrahim Jarif 2019-09-01 01:45:13 +05:30 committed by Philipp Hemmelmayr
parent 89f7dcd2be
commit 11bb4e1c6d

View file

@ -71,7 +71,7 @@ init_filenames "$res"
prelock() {
if [ -n lock_timeout ]; then
if [ ! -z "$lock_timeout" ]; then
xset dpms "$lock_timeout"
fi
if [ ! -z "$(pidof dunst)" ]; then
@ -100,7 +100,7 @@ lock() {
postlock() {
if [ -n lock_timeout ]; then
if [ ! -z "$lock_timeout" ]; then
xset dpms "$default_timeout"
fi
if [ ! -z "$(pidof dunst)" ] ; then