projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bail out if architecture isn't set nor can be identified automatically
[grml-debootstrap.git]
/
grml-debootstrap
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
d62cd2c
..
c31b5cd
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-1155,6
+1155,12
@@
else
ARCHCMD="--arch $ARCH"
ARCHINFO=" (${ARCH})"
fi
ARCHCMD="--arch $ARCH"
ARCHINFO=" (${ARCH})"
fi
+
+if [ -z "${ARCH:-}" ] ; then
+ eerror 'Architecture neither set (environment variable ARCH), nor could be automatically identified (using dpkg).'
+ eerror 'Consider setting the --arch ... option.' ; eend 1
+ bailout 1
+fi
# }}}
# It is not possible to build amd64 on i686. {{{
# }}}
# It is not possible to build amd64 on i686. {{{