Also check existence of shasum

This commit is contained in:
Adam Wright
2016-02-18 01:27:07 -08:00
parent 82762583be
commit a06b583334

View File

@@ -78,6 +78,15 @@ else
exit 1
fi
printf "${PREFIX} Checking for shasum ... "
command -v shasum &>/dev/null
if [ $? == 0 ]; then
printf "${SUCCESS}\n"
else
printf "${FAILURE}\n"
exit 1
fi
# Just check that running rustfmt doesn't do anything to the file. I do this instead of
# modifying the file because I don't want to mess with the developer's index, which may
# not only contain discrete files.
@@ -103,6 +112,4 @@ else
printf "${SUCCESS}\n"
fi
if [ ${FAILED} != 0 ]; then
exit 1
fi
exit ${FAILED}