From 1b3a632171d037689a2ed899f6ec10dc06e10a32 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sun, 6 Nov 2022 22:08:18 -0600 Subject: [PATCH] Switch to bash --- brightness-by-daylight.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brightness-by-daylight.sh b/brightness-by-daylight.sh index e857758..405dd4b 100644 --- a/brightness-by-daylight.sh +++ b/brightness-by-daylight.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # this is a script to set my external monitor's brightness # to high (70%) or low (40%) automatically according to day/night. @@ -26,7 +26,7 @@ [ -z "$XDG_CONFIG_HOME" ] && confdir="/home/sintan/.config" || confdir="$XDG_CONFIG_HOME" # read from the config file -if test -f $confdir/latlong.toml ; then +if [ -f $confdir/latlong.toml ]; then source $confdir/latlong.toml else echo "No config file found!"