Skip to content

Commit

Permalink
Adjusted advice for what to do if missing .nes files
Browse files Browse the repository at this point in the history
  • Loading branch information
nstbayless committed Aug 27, 2017
1 parent 0dffcb1 commit 293d7a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ cd $_rdir
if [ ! -f ./base.nes ]
then
>&2 echo "Base ROM (base.nes) is not found! Aborting commit."
>&2 echo "Add a base.nes ROM or commit again with --no-verify"
exit 1;
fi

if [ ! -f ./base.nes ]
if [ ! -f ./working.nes ]
then
>&2 echo "Modified ROM (working.nes) is not found! Aborting commit."
>&2 echo "(Did you ever generate working.nes with apply.sh?)"
>&2 echo "Generate working.nes or commit again with --no-verify"
exit 2;
fi

Expand All @@ -39,7 +41,7 @@ rm .patch-prev.ips
if [ ! -z $test ]
then
echo "Cannot commit while patch.ips is not up-to-date!"
echo "(Either run ./apply.sh to bring patch.ips up to date, or commit again with --no-verify)"
echo "(Either run ./make-patch.sh to bring patch.ips up to date, or commit again with --no-verify)"
exit 1;
fi

Expand Down

0 comments on commit 293d7a9

Please sign in to comment.