mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 19:56:32 +02:00
Merge pull request #504 from knoepfchendruecker/master
enable spaces in path names, add minimum error handling
This commit is contained in:
commit
b77aa4d248
@ -171,10 +171,15 @@ CLOUD_CONFIG="${CLOUD_CONFIG/<HOSTNAME>/${HNAME}}"
|
||||
|
||||
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}"
|
||||
mkisofs -R -V config-2 -o "$CONFIGDRIVE_FILE" "$WORKDIR"
|
||||
|
||||
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…
x
Reference in New Issue
Block a user