mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
utils: kernel-refresh.sh: Only remove old patches if they exist
E.g., when upgrading to a new version, there are no previous patches to remove.
This commit is contained in:
@@ -60,6 +60,9 @@ if ! [ "$PDIR" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git -C $PDIR rm *.patch
|
||||
KDIR=$(readlink -f $KDIR)
|
||||
PDIR=$(readlink -f $PDIR)
|
||||
|
||||
git ls-files --error-unmatch $PDIR 1>/dev/null 2>&1 && git -C $PDIR rm *.patch
|
||||
git -C $KDIR format-patch -o $PDIR $KTAG..HEAD
|
||||
git -C $PDIR add *.patch
|
||||
|
||||
Reference in New Issue
Block a user