mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 05:26:58 +02:00
Added simple error message on failed mkisofs.
When mkisofs failed, the script would still claim "Success".
This commit is contained in:
parent
7b572d73f9
commit
eda59ed214
@ -173,8 +173,13 @@ echo "$CLOUD_CONFIG" > "$CONFIG_FILE"
|
||||
|
||||
mkisofs -R -V config-2 -o "$CONFIGDRIVE_FILE" "$WORKDIR"
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Success! The config-drive image was created on ${CONFIGDRIVE_FILE}"
|
||||
|
||||
if [ "$?" -eq 0 ] ; then
|
||||
echo
|
||||
echo
|
||||
echo "Success! The config-drive image was created on ${CONFIGDRIVE_FILE}"
|
||||
else
|
||||
echo
|
||||
echo
|
||||
echo "Failure! The config-drive image was not created on ${CONFIGDRIVE_FILE}"
|
||||
fi
|
||||
# vim: ts=4 et
|
||||
|
Loading…
Reference in New Issue
Block a user