summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pkg8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pkg b/bin/pkg
index 946fd01..cc07702 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -61,11 +61,11 @@ if [[ -f $HOME/.pkg.conf ]] {
}
# Default values... or not
-[[ -n $PDIR ]] || PDIR="$HOME/packages"
[[ -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
+: ${PDIR:="$HOME/packages"}
+: ${CL_OPTIONS:=-q}
+: ${SILENT=0}
+: ${AUTOUPDATE=1}
export PDIR
export PKG_ROOT