mirror of
https://github.com/jimeh/dotify.git
synced 2026-02-19 10:06:39 +00:00
Update dotify-info command
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user