diff options
author | David Runge <dave@sleepmap.de> | 2018-11-17 00:49:07 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2018-11-17 00:49:07 +0100 |
commit | 63e6444533cb8960f918cba97fb65f0fdf70dd00 (patch) | |
tree | 3aff4b8389243486f1a702814e2822bb5347a32a | |
parent | a7940964544bdf4536c16836dc79e2d0ae375ae0 (diff) | |
download | dotfiles-63e6444533cb8960f918cba97fb65f0fdf70dd00.tar.gz dotfiles-63e6444533cb8960f918cba97fb65f0fdf70dd00.tar.bz2 dotfiles-63e6444533cb8960f918cba97fb65f0fdf70dd00.tar.xz dotfiles-63e6444533cb8960f918cba97fb65f0fdf70dd00.zip |
bin/xorg_lock: Properly quote variables. Rename variables for better readibility.
-rwxr-xr-x | bin/xorg_lock | 10 |
1 files 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 |