Commit 1683ad70 authored by Edward Wang's avatar Edward Wang

Abort git-am if applying the patches failed

parent d4607fef
...@@ -44,6 +44,11 @@ if [ ! -d "vlc" ]; then ...@@ -44,6 +44,11 @@ if [ ! -d "vlc" ]; then
git checkout -B android ${TESTED_HASH} git checkout -B android ${TESTED_HASH}
echo "Applying the patches" echo "Applying the patches"
git am ../patches/*.patch git am ../patches/*.patch
if [ $? -ne 0 ]; then
git am --abort
echo "Applying the patches failed, aborting git-am"
exit 1
fi
else else
echo "VLC source found" echo "VLC source found"
cd vlc cd vlc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment