mirror of
https://github.com/SinTan1729/random.git
synced 2024-12-26 21:18:36 -06:00
Switch to bash
This commit is contained in:
parent
7b1c496add
commit
1b3a632171
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/bash
|
||||||
|
|
||||||
# this is a script to set my external monitor's brightness
|
# this is a script to set my external monitor's brightness
|
||||||
# to high (70%) or low (40%) automatically according to day/night.
|
# 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"
|
[ -z "$XDG_CONFIG_HOME" ] && confdir="/home/sintan/.config" || confdir="$XDG_CONFIG_HOME"
|
||||||
|
|
||||||
# read from the config file
|
# read from the config file
|
||||||
if test -f $confdir/latlong.toml ; then
|
if [ -f $confdir/latlong.toml ]; then
|
||||||
source $confdir/latlong.toml
|
source $confdir/latlong.toml
|
||||||
else
|
else
|
||||||
echo "No config file found!"
|
echo "No config file found!"
|
||||||
|
|
Loading…
Reference in a new issue