mirror of
https://github.com/gfwlist/gfwlist.git
synced 2024-12-24 15:45:19 +00:00
b25lIG1vcmUgZXJyb3IgaGFuZGxlcgo=
This commit is contained in:
parent
29f8b91814
commit
03afb5b2a2
@ -80,10 +80,15 @@ if [ "$convertedLog" != "" ]; then
|
||||
echo -e $convertedLog | git commit -a -F - &&
|
||||
|
||||
[ -s temp.patch ] && git apply temp.patch &&
|
||||
rm temp.patch &&
|
||||
rm temp.patch;
|
||||
|
||||
# remove (if exist) empty temp.patch
|
||||
[ ! -s temp.patch -a -e temp.patch ] && rm temp.patch;
|
||||
if [ -s temp.patch ]; then
|
||||
echo "Error: git apply failed, your work saved at temp.patch";
|
||||
exit 1;
|
||||
elif [ -a temp.patch ]; then
|
||||
# empty, remove it
|
||||
rm temp.patch;
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$(git diff)" == "" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user