diff --git a/brightness-by-daylight.sh b/brightness-by-daylight.sh index 4abb83b..e857758 100644 --- a/brightness-by-daylight.sh +++ b/brightness-by-daylight.sh @@ -20,7 +20,7 @@ # (sometimes I forget to turn on the monitor when I start my PC, so this is better than having a crontab) # avoid running two concurrent processes -[ "${BRTNESSLOCKER}" != "running" ] && exec env BRTNESSLOCKER="running" flock -en "/tmp/brightness-by-daylight" "$0" "$@" || : +[ "${BRTNESSLOCKER}" != "running" ] && exec env BRTNESSLOCKER="running" flock -en "/tmp/brightness-by-daylight.lock" "$0" "$@" || : # set location of the config file [ -z "$XDG_CONFIG_HOME" ] && confdir="/home/sintan/.config" || confdir="$XDG_CONFIG_HOME" diff --git a/impfilesbk b/impfilesbk index f111248..ae33b81 100644 --- a/impfilesbk +++ b/impfilesbk @@ -3,7 +3,7 @@ # This script backs up some important stuff # Run only one instance of this script at one time -[ "${BKLOCKER}" != "running" ] && exec env BKLOCKER="running" flock -en "/tmp/impfilesbk" "$0" "$@" || : +[ "${BKLOCKER}" != "running" ] && exec env BKLOCKER="running" flock -en "/tmp/impfilesbk.lock" "$0" "$@" || : # Setup location for home and backup directory HMDIR="/home/sintan"