diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-11 20:53:31 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-10-11 20:53:31 +0200 |
commit | f79c1f6fec2548b40701cbbd73d0e09fd101eab7 (patch) | |
tree | 6661b218aa3bf06eef4b6e66605377d6a74f1cc0 | |
parent | f230d8e2412c66d6eeee35695b0621d349a361d8 (diff) |
bin/pkg: Remove default PKG_ROOT value
-rwxr-xr-x | bin/pkg | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -20,6 +20,10 @@ typeset -a -U triggers ## Internal functions for displaying stuff ## +info=$'\e[0;36m' +error=$'\e[0;31m' +reset=$'\e[0m' + info () { (( SILENT )) || echo -ne "${info}$*${reset}" } @@ -50,15 +54,12 @@ if [[ -f $HOME/.pkg.conf ]] { . $HOME/.pkg.conf } -# Default values +# Default values... or not [[ -n $PDIR ]] || PDIR="$HOME/packages" -[[ -n $PKG_ROOT ]] || PKG_ROOT="ssh://derf.homelinux.org/home/derf/var/packages_root" +[[ -n $PKG_ROOT ]] || die "No PKG_ROOT specified. Please edit ~/.pkg.conf\n" [[ -n $CL_OPTIONS ]] || CL_OPTIONS=(-q) [[ -n $SILENT ]] || SILENT=0 [[ -n $AUTOUPDATE ]] || AUTOUPDATE=1 -info=$'\e[0;36m' -error=$'\e[0;31m' -reset=$'\e[0m' export PDIR export PKG_ROOT |