Permalink
Browse files

whoops -- proper checking for `md5sum`

  • Loading branch information...
1 parent ef6dff5 commit 08f73994daff36627dc17ae5a8bf77f69b641fd5 @mariusae committed Mar 16, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 make-emacs
View
@@ -2,13 +2,15 @@
#
# Make a standalone emacs configuration.
+set -e
+
if [ $# -ne 2 ]; then
echo "`basename $0` <emacs.d-directory|emacs-init-file> <output file>" \
> /dev/null 1>&2
exit 1
fi
-if `which md5sum`; then
+if which md5sum > /dev/null; then
MD5=md5sum
else
MD5=md5

0 comments on commit 08f7399

Please sign in to comment.