check for XOR availability

This commit is contained in:
George Danchev 2011-06-24 07:13:30 +00:00
parent 1d77ab8fbf
commit b3e47da537

View File

@ -62,6 +62,11 @@ if [ "${XOR}" == "" -o "${DIR}" == "" -o "${IMG}" == "" ]; then
exit 1
fi
if [ ! -x "${XOR}" ]; then
printf "$0: Not found or not an executable: $XOR\n"
exit 1
fi
# all must be set at this point
printf "$0: Config items:"
printf "\n\txorriso_cmd=${XOR}\n\tIN_dir=${DIR}\n\tOUT_image=${IMG}.iso"