First batch of obvious changes - use better shellism, only call make (without make install).

This commit is contained in:
Łukasz 'sil2100' Zemczak 2018-11-21 20:22:38 +01:00
parent a3a9b2ab60
commit 2947cdbe60
2 changed files with 3 additions and 10 deletions

View File

@ -32,10 +32,7 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ]; then
mv seed.manifest "$PREFIX".manifest
else
# First we need to build the gadget tree
(
cd config/$PREFIX-gadget
make && make install
)
make -C "config/$PREFIX-gadget"
ubuntu-image classic $UBUNTU_IMAGE_ARGS \
-p $PROJECT -a $ARCH --subarch $SUBARCH \
-o "$PREFIX".img config/$PREFIX-gadget/install

View File

@ -218,12 +218,8 @@ case $IMAGEFORMAT in
# classic images
UBUNTU_IMAGE_ARGS=""
if [ "$PROPOSED" ]; then
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS --with-proposed"
fi
if [ "$EXTRA_PPAS" ]; then
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS --extra-ppas \"$EXTRA_PPAS\""
fi
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS${PROPOSED:+ --with-proposed}"
UBUNTU_IMAGE_ARGS="$UBUNTU_IMAGE_ARGS${EXTRA_PPAS:+ --extra-ppas \"$EXTRA_PPAS\"}"
git clone lp:~canonical-foundations/snap-$MODEL/+git/github-mirror -b classic config/$PREFIX-gadget