Skip to content

Commit

Permalink
exit with code from fai call, Closes: #866331
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Sep 26, 2017
1 parent 37d00b9 commit 5ace8a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/fai-diskimage
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ mnt=$(mktemp -d -t fai-diskimage.XXXXXX)
trap "cleanup" EXIT

LC_ALL=C fai $renew -u $hname -s $uri -c$classes install $mnt
error=$?
cleanup

trap - EXIT
Expand All @@ -192,4 +193,4 @@ if [ $convert -eq 1 ]; then
fi
echo -n "Size of disk image and filename: "; du -h $image
echo "Image created by: $call"
exit 0
exit $error

0 comments on commit 5ace8a0

Please sign in to comment.