summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-07 00:03:08 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-07 00:03:08 +0200
commit341f8ee93c61e4e6b4b4fb0776e8a6023dcdb168 (patch)
tree88721b1de42ca9898ff2234a52d708a5c7c3dba3 /bin/pkg
parentc5fd077ac48200023789059858efa35bdbf79674 (diff)
bin/pkg: Fixed PKG_PATH for ssh
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
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"
}