summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 .
}
}