Update dotify-info command

This commit is contained in:
2013-10-03 23:34:39 +01:00
parent 4b84e35b2f
commit bb978f4824

View File

@@ -1,12 +1,12 @@
dotify-info() { dotify-info() {
local dotfile="$(locate-dotfile "$@")" locate-dotfile
if [ -z "$dotfile" ]; then return 1; fi if [ "$?" != "0" ]; then return 1; fi
local target="$(locate-target "$@")" locate-target
if [ -z "$target" ]; then return 1; fi if [ "$?" != "0" ]; then return 1; fi
echo "dotify $(dotify-version)" echo "$(dotify-print-version)"
echo " Dotfile: $dotfile" echo " Dotfile: $DOTFILE"
echo " Root: $(dirname "$dotfile")" echo " Root: $(dirname "$DOTFILE")"
echo " Target: $target" echo " Target: $TARGET"
} }