]> git.sev.monster Git - dotfiles.git/commitdiff
install.sh: fix test check
authorsev <git@sev.monster>
Wed, 10 Jan 2024 22:11:47 +0000 (16:11 -0600)
committersev <git@sev.monster>
Fri, 5 Apr 2024 21:27:41 +0000 (16:27 -0500)
install.sh

index 88a80ad20bcdae5aea6372bc6728862bfeb64140..5fd522af571d8db410ea9b965f8c083ca8a6322c 100755 (executable)
@@ -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
 
This page took 0.034886 seconds and 4 git commands to generate.