summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-07-06 21:26:45 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-07-06 21:28:17 +0200
commita843661370f7baf4d4d46f408d06a5045975c762 (patch)
tree0e8659f0fa13601f7b328bcf561c84a3f1c29445 /bin
parent3e6eab78df6364f3bd07c327f561ad91cf5da9c7 (diff)
pkg: debug: Don't rely on the pkg package being called 'core'
Diffstat (limited to 'bin')
-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"