summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 42cca68..3cdb3ab 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -161,8 +161,8 @@ if ((DEBUG)) {
info "pkg: running in debug mode. Infos follow:\n"
echo "--- running ---"
echo " zsh $ZSH_VERSION"
- echo " git ${${(z)$(git --version)}[3]}"
- echo " pkg ${${(z)$(git --git-dir=$PKG_DIR/core/.git/ log -n 1)}[2]}"
+ echo " git "${$(git --version)[3]}
+ echo " pkg "${$(git --git-dir=$PKG_DIR/${${(s:/:)$(readlink $0)}[-3]}/.git/ log -n 1)[2]}
echo "--- settings ---"
echo " PKG_ROOT $PKG_ROOT"
echo " PKG_PROTO $PKG_PROTO"