Code Review
/
AGL
/
meta-agl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Do not use cpio.gz for initramfs as smack does not work
[AGL/meta-agl.git]
/
scripts
/
.aglsetup_genconfig.bash
diff --git
a/scripts/.aglsetup_genconfig.bash
b/scripts/.aglsetup_genconfig.bash
index
af2b747
..
48af0fb
100755
(executable)
--- a/
scripts/.aglsetup_genconfig.bash
+++ b/
scripts/.aglsetup_genconfig.bash
@@
-67,6
+67,13
@@
function list_all_machines() {
done
}
done
}
+function validate_builddir() {
+ if [[ "$BUILDDIR" =~ [[:space:]] ]]; then
+ error "Build dir '$BUILDDIR' shouldn't contain any space"
+ fi
+ debug "Build dir is valid"
+}
+
function validate_machines() {
list_all_machines | sort | uniq -c | while read cnt machine; do
[[ $cnt == 1 ]] && continue
function validate_machines() {
list_all_machines | sort | uniq -c | while read cnt machine; do
[[ $cnt == 1 ]] && continue
@@
-335,7
+342,8
@@
done
# validate build dir
debug "validating builddir $BUILDDIR"
# validate build dir
debug "validating builddir $BUILDDIR"
-BUILDDIR=$(mkdir -p $BUILDDIR && cd $BUILDDIR && pwd -P)
+BUILDDIR=$(mkdir -p "$BUILDDIR" && cd "$BUILDDIR" && pwd -P)
+validate_builddir
###########################################################################################
function dump_log() {
###########################################################################################
function dump_log() {