From bb978f48243333542b912baff3c49596488a13ce Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 3 Oct 2013 23:34:39 +0100 Subject: [PATCH] Update dotify-info command --- src/lib/dotify-info.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/dotify-info.sh b/src/lib/dotify-info.sh index 62fbec6..411b20d 100644 --- a/src/lib/dotify-info.sh +++ b/src/lib/dotify-info.sh @@ -1,12 +1,12 @@ dotify-info() { - local dotfile="$(locate-dotfile "$@")" - if [ -z "$dotfile" ]; then return 1; fi + locate-dotfile + if [ "$?" != "0" ]; then return 1; fi - local target="$(locate-target "$@")" - if [ -z "$target" ]; then return 1; fi + locate-target + if [ "$?" != "0" ]; then return 1; fi - echo "dotify $(dotify-version)" - echo " Dotfile: $dotfile" - echo " Root: $(dirname "$dotfile")" - echo " Target: $target" + echo "$(dotify-print-version)" + echo " Dotfile: $DOTFILE" + echo " Root: $(dirname "$DOTFILE")" + echo " Target: $TARGET" }