summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-07 11:52:02 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-07 11:52:02 +0200
commit2fc9d0c03c6bf3424928141c9c9819e444c9f756 (patch)
tree6947a51a1e28389794bb8f5c14f8a705d3e663cc /bin
parent268fed8ec190b6b57fe15c7ce07e534cc96a1c43 (diff)
bin/pkg: Fixed PKG_ROOT / PKG_PATH relation
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
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
}