Skip to content

Commit

Permalink
work/do.sh: clean up patches automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkh committed Sep 26, 2012
1 parent 6ad1fb7 commit ff1e4cc
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions work/do.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -160,10 +160,16 @@ echo "BRANCH=$BRANCH"
# don't want to accidentally send them out twice # don't want to accidentally send them out twice
OLD_PATCH=`ls 0*.patch 2>/dev/null | head -n 1` OLD_PATCH=`ls 0*.patch 2>/dev/null | head -n 1`
if [ "${OLD_PATCH}" != "" ] ; then if [ "${OLD_PATCH}" != "" ] ; then
echo "ERROR!!!" echo "WARNING: There are old patches still in the directory:"
echo "There are old patches still in the directory," for P in 0*.patch; do
echo "clean them up before running this again." echo " ${P}"
exit done
echo ""
echo "I will clean them up if you don't stop the script right now."
echo -n "[ret] to continue"
read
rm 0*.patch
#exit
fi fi


PWD=`pwd` PWD=`pwd`
Expand Down

0 comments on commit ff1e4cc

Please sign in to comment.