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() {
|
||||
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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user