diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-27 20:25:03 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-27 20:25:03 +0200 |
commit | e5890fd4a4966a6b248d331edd7cfb2f79d9ca63 (patch) | |
tree | eee0044ed125328cbfc7bf829a2bb6e509be7973 | |
parent | f240707e8b271f3dd3efbebb68ab178f41204f74 (diff) |
bin/pkg: pkg_update: Fixed that shit
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 . } } |