From 2fc9d0c03c6bf3424928141c9c9819e444c9f756 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Oct 2008 11:52:02 +0200 Subject: bin/pkg: Fixed PKG_ROOT / PKG_PATH relation --- bin/pkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/pkg b/bin/pkg index 1f14476..23aa855 100755 --- a/bin/pkg +++ b/bin/pkg @@ -44,7 +44,7 @@ if [[ -f $HOME/.pkg.conf ]] { # Default values [[ -n $PDIR ]] || PDIR="$HOME/packages" -[[ -n $PKG_ROOT ]] || PKG_ROOT="ssh://derf.homelinux.org/~/var/packages_root" +[[ -n $PKG_ROOT ]] || PKG_ROOT="ssh://derf.homelinux.org/home/derf/var/packages_root" [[ -n $CL_OPTIONS ]] || CL_OPTIONS=(-q) [[ -n $SILENT ]] || SILENT=0 info=$'\e[0;36m' @@ -212,7 +212,7 @@ list_type_local () { list_update_remote () { if [[ $PKG_PROTO = 'ssh' ]] { - scp -q $PKG_HOST:${$(cut -d / -f 4- <<< $PKG_ROOT)/'~/'}/.list .list-remote + scp -q $PKG_HOST:$PKG_PATH/.list .list-remote } elif [[ $PKG_PROTO = 'file' ]] { cp $PKG_ROOT/.list .list-remote } -- cgit v1.2.3