From: Ulrich Dangel Date: Tue, 28 Dec 2010 22:54:10 +0000 (+0100) Subject: Install all packages in debs directory if debs boot parameter is specified X-Git-Tag: v0.9.25~3 X-Git-Url: https://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=dddfae0c3d3fd37352091192187e5a9852e54b7e Install all packages in debs directory if debs boot parameter is specified --- diff --git a/autoconfig.functions b/autoconfig.functions index dec5107..6df961c 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -1920,6 +1920,9 @@ config_debs(){ if checkbootparam 'debs' ; then iszsh && setopt localoptions shwordsplit DEBS="$(getbootparam 'debs' 2>>$DEBUG)" + if [ -z "$DEBS" ] ; then + DEBS="*" + fi if ! echo $DEBS | grep -q '/'; then # backwards compatibility: if no path is given get debs from debs/ DEBS="debs/$DEBS" diff --git a/tests/test_debs.sh b/tests/test_debs.sh index 0a06a0d..04b566b 100755 --- a/tests/test_debs.sh +++ b/tests/test_debs.sh @@ -16,7 +16,7 @@ dpkg() { test_debs() { . ../autoconfig.functions - CMDLINE='debs=*' + CMDLINE='debs' INSTALLED='' TMPDIR=$(mktemp -d)