summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-02-21 13:44:42 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-02-21 13:44:42 +0100
commitf6cc7a0a3e73335401cf44740b8f59807c932e9c (patch)
tree91b69d3481ae6a7ca30279722fc452dfdf066f39
parent9352a13abb222f0a7e971e5871c9404a4994f55f (diff)
pkg: parameter setup: autoload sanity
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index be0f0bd..8a3f609 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -135,9 +135,9 @@ if [[ ! -d $PDIR ]] {
##
# Protocol
-if [[ ${PKG_ROOT#ssh} != $PKG_ROOT ]] {
+if [[ $PKG_ROOT == ssh://* ]] {
PKG_PROTO='ssh'
-} elif [[ ${PKG_ROOT#'/'} != $PKG_ROOT ]] {
+} elif [[ $PKG_ROOT == /* ]] {
PKG_PROTO='file'
} else {
die "Error: Unknown protocol in PKG_ROOT '$PKG_ROOT'"