From e5890fd4a4966a6b248d331edd7cfb2f79d9ca63 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 Jun 2008 20:25:03 +0200 Subject: bin/pkg: pkg_update: Fixed that shit --- bin/pkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/pkg b/bin/pkg index 569f437..49bc099 100755 --- a/bin/pkg +++ b/bin/pkg @@ -321,9 +321,9 @@ pkg_remove () { pkg_update () { cd $PDIR - if ("$PKG_PROTO" = 'ssh') { - scp $PKG_HOST:/(echo $PKG_ROOT | cut -d / -f 4-)/.links . - } elif ("$PKG_PROTO" = 'file') { + if ([ "$PKG_PROTO" = 'ssh' ]) { + scp $PKG_HOST:$(echo $PKG_ROOT | cut -d / -f 4- | sed 's!~/!!')/.list .remote-list + } elif ([ "$PKG_PROTO" = 'file' ]) { cp $PKG_ROOT/.links . } } -- cgit v1.2.3