From 341f8ee93c61e4e6b4b4fb0776e8a6023dcdb168 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 7 Jun 2008 00:03:08 +0200 Subject: bin/pkg: Fixed PKG_PATH for ssh --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 5485cba..dc12cd4 100755 --- a/bin/pkg +++ b/bin/pkg @@ -82,7 +82,7 @@ if ([ "$PKG_PROTO" = "ssh" ]) { # Remote path if ([ "$PKG_PROTO" = "ssh" ]) { - PKG_PATH=$(echo "$PKG_ROOT" | sed 's!^ssh://!!' | sed -r 's!^([^/]*)/.*$!\1!') + PKG_PATH=$(echo "$PKG_ROOT" | sed 's!^ssh://'"$PKG_HOST"'/!!') } elif ([ "$PKG_PROTO" = "file" ]) { PKG_PATH="$PKG_ROOT" } -- cgit v1.2.3