diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-02-21 13:44:42 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-02-21 13:44:42 +0100 |
commit | f6cc7a0a3e73335401cf44740b8f59807c932e9c (patch) | |
tree | 91b69d3481ae6a7ca30279722fc452dfdf066f39 /bin/pkg | |
parent | 9352a13abb222f0a7e971e5871c9404a4994f55f (diff) |
pkg: parameter setup: autoload sanity
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'" |