From f5bca6d04342c0d6d08494e0d669ff36642214f2 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Tue, 10 Mar 2009 22:13:00 +0100 Subject: syntax fixes +todo update --- src/core/procedures/automatic | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/core/procedures') diff --git a/src/core/procedures/automatic b/src/core/procedures/automatic index 0b5323c..5dbd03e 100644 --- a/src/core/procedures/automatic +++ b/src/core/procedures/automatic @@ -21,6 +21,7 @@ depend_procedure core base var_OPTS_STRING="c:" var_ARGS_USAGE="-c : Specify a configfile (profile) to be used" var_AUTOMATIC_PROFILE="" +# TODO: if the user does aif -p automatic -c, then $1 is ":-" ??? if you do -c then it's ok. process_args () { if [ "$1" = '-c' ] @@ -47,8 +48,8 @@ worker_configure () source $var_AUTOMATIC_PROFILE || die_error "Could not source config $var_AUTOMATIC_PROFILE" var_RUNTIME_REPOSITORIES=$AUTOMATIC_RUNTIME_REPOSITORIES var_RUNTIME_PACKAGES=$AUTOMATIC_RUNTIME_PACKAGES - [ - z "$var_PARTITIONS" ] && die_error "You did not specify a partition scheme" - [ - z "$var_BLOCKDATA" ] && die_error "You did not specify a partition scheme" + [ -z "$var_PARTITIONS" ] && die_error "You did not specify a partition scheme" + [ -z "$var_BLOCKDATA" ] && die_error "You did not specify a partition scheme" } worker_select_source () -- cgit v1.2.3-54-g00ecf