Consistently use -r instead of -f for conditional shell sourcing

This commit is contained in:
Lucas 2023-06-20 00:47:14 +00:00
parent 432832cd5a
commit 6343210d90
4 changed files with 7 additions and 7 deletions

View file

@ -1,6 +1,6 @@
#!/bin/sh
# env
# Written in 2019-2020,2022 by Lucas
# Written in 2019-2020,2022-2023 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
@ -10,7 +10,7 @@
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
if [ -f ~/.config/herbstluftwm/theme ]; then
if [ -r ~/.config/herbstluftwm/theme ]; then
. ~/.config/herbstluftwm/theme
fi

View file

@ -1,6 +1,6 @@
#!/bin/sh
# env
# Written in 2019-2020 by Lucas
# Written in 2019-2020,2023 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
@ -10,7 +10,7 @@
# Dedication along with this software. If not, see
# <http://creativecommons.org/publicdomain/zero/1.0/>.
if [ -f ~/.config/herbstluftwm/theme ]; then
if [ -r ~/.config/herbstluftwm/theme ]; then
. ~/.config/herbstluftwm/theme
fi