summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
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"
}