summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-03-10 22:13:00 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2009-03-10 22:13:00 +0100
commitf5bca6d04342c0d6d08494e0d669ff36642214f2 (patch)
tree7e3683c04ea847e245dcb6dcd8685156ed721316
parent293588673428d5e3c08d30b5a1a3b6246a5bec3a (diff)
syntax fixes +todo update
-rw-r--r--src/core/procedures/automatic5
1 files changed, 3 insertions, 2 deletions
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 <config>: 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 <something> 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 ()