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() {
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"
}