summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-27 20:25:03 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-27 20:25:03 +0200
commite5890fd4a4966a6b248d331edd7cfb2f79d9ca63 (patch)
treeeee0044ed125328cbfc7bf829a2bb6e509be7973
parentf240707e8b271f3dd3efbebb68ab178f41204f74 (diff)
bin/pkg: pkg_update: Fixed that shit
-rwxr-xr-xbin/pkg6
1 files 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 .
}
}