Wrap $TARGET in braces in disconnect().
authorW. Trevor King <wking@tremily.us>
Thu, 27 Sep 2012 11:56:58 +0000 (07:56 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 27 Sep 2012 12:04:37 +0000 (08:04 -0400)
dotfiles.sh

index 82ff4f73c29e06bf30e2ae450996a376562072bf..900fcf57a910c4de9b5b0b9d2e42019296c58b0c 100755 (executable)
@@ -627,7 +627,7 @@ function disconnect()
        BASHRC='no'
 
        while read FILE; do
-               if [ "${FILE}" = '.bashrc' ] && [ "$TARGET" -ef "${HOME}" ]; then
+               if [ "${FILE}" = '.bashrc' ] && [ "${TARGET}" -ef "${HOME}" ]; then
                        BASHRC='yes'
                fi
                if [ "${DOTFILES_SRC}/${FILE}" -ef "${TARGET}/${FILE}" ] && [ -h "${TARGET}/${FILE}" ]; then