diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pkg | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" } |