diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-06 21:26:45 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-07-06 21:28:17 +0200 | 
| commit | a843661370f7baf4d4d46f408d06a5045975c762 (patch) | |
| tree | 0e8659f0fa13601f7b328bcf561c84a3f1c29445 | |
| parent | 3e6eab78df6364f3bd07c327f561ad91cf5da9c7 (diff) | |
pkg: debug: Don't rely on the pkg package being called 'core'
| -rwxr-xr-x | bin/pkg | 4 | 
1 files changed, 2 insertions, 2 deletions
@@ -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"  | 
