From 18a1f0ab1c54edbeff8b6661ee1bad5eff6e14e5 Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Mon, 1 Aug 2022 21:47:07 -0500 Subject: [PATCH] change lockfile names --- brightness-by-daylight.sh | 2 +- impfilesbk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"