From b63487b0abd5ff43f9e0a9ad47cae6ec3243d793 Mon Sep 17 00:00:00 2001 From: sev Date: Wed, 10 Jan 2024 16:11:47 -0600 Subject: [PATCH] install.sh: fix test check --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 88a80ad..5fd522a 100755 --- a/install.sh +++ b/install.sh @@ -19,7 +19,7 @@ cache="${XDG_CACHE_HOME#$DEST/}" # test devnull=/dev/null -if [ ${DOTFILES_TEST+x} = x ]; then +if [ "${DOTFILES_TEST+x}" = x ]; then echo "Running test -- no changes will be applied" devnull=/dev/stdout _cd() { @@ -69,7 +69,7 @@ find . "$share" "$etc" \ -xdev -mindepth 1 -maxdepth 1 -type l -exec sh -c ' r="$(realpath "{}")" [ "${r#'"$SRC"'/}" != "$r" ] && - '"$([ ${DOTFILES_TEST+x} = x ] && echo 'echo +++ ')"'unlink "{}"' \; + '"$([ "${DOTFILES_TEST+x}" = x ] && echo 'echo +++ ')"'unlink "{}"' \; cd "$SRC" >$devnull -- 2.47.0