From 63e6444533cb8960f918cba97fb65f0fdf70dd00 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sat, 17 Nov 2018 00:49:07 +0100 Subject: bin/xorg_lock: Properly quote variables. Rename variables for better readibility. --- bin/xorg_lock | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/xorg_lock b/bin/xorg_lock index 648099e..6ddeb0c 100755 --- a/bin/xorg_lock +++ b/bin/xorg_lock @@ -2,13 +2,13 @@ set -euo pipefail -lock=${XDG_RUNTIME_DIR}/xorg_autolock.lock -lockcmd="i3lock -n -e -c 000000 -f" +lock_file=${XDG_RUNTIME_DIR}/xorg_autolock.lock +lock_cmd="i3lock -n -e -c 000000 -f" if [ -x "/usr/bin/i3lock" ]; then - touch ${lock} - ${lockcmd} - rm -f ${lock} + touch "${lock_file}" + ${lock_cmd} + rm -f "${lock_file}" else echo "i3lock is not installed!" exit 1 -- cgit v1.2.3-70-g09d2