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 b34993a..8e8336d 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -199,14 +199,14 @@ list_type_local () {
list_update_remote () {
export PDIR
if [[ $PKG_PROTO = 'ssh' ]] {
- ssh $PKG_HOST "$PKG_PATH/core/include/pkglist $PKG_PATH" > .list-remote
- if (( newmode == 0 )) {
+ ssh $PKG_HOST "PDIR='$PDIR' $PKG_PATH/core/include/pkglist $PKG_PATH" > .list-remote
+ if [[ ${#$(cat .list-remote)} == 0 ]] {
scp -q $PKG_HOST:$PKG_PATH/.list .list-remote
warn "The pkglist version on your packages_root is outdated, please update\n"
}
} elif [[ $PKG_PROTO = 'file' ]] {
$PKG_PATH/core/include/pkglist $PKG_PATH > .list-remote
- if (( newmode == 0 )) {
+ if [[ ${#$(cat .list-remote)} == 0 ]] {
cp $PKG_ROOT/.list .list-remote
warn "The pkglist version on your packages_root is outdated, please update\n"
}