'Properly' fix rebuildpatches
This commit is contained in:
parent
1a58ea5d49
commit
959d6ac882
|
@ -1,7 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
(
|
(
|
||||||
set -e
|
|
||||||
PS1="$"
|
PS1="$"
|
||||||
basedir="$(cd "$1" && pwd -P)"
|
basedir="$(cd "$1" && pwd -P)"
|
||||||
workdir="$basedir/work"
|
workdir="$basedir/work"
|
||||||
|
@ -17,9 +16,7 @@ function cleanupPatches {
|
||||||
|
|
||||||
testver=$(echo "$diffs" | tail -n 2 | grep -ve "^$" | tail -n 1 | grep "$gitver")
|
testver=$(echo "$diffs" | tail -n 2 | grep -ve "^$" | tail -n 1 | grep "$gitver")
|
||||||
if [ "x$testver" != "x" ]; then
|
if [ "x$testver" != "x" ]; then
|
||||||
set +e
|
|
||||||
diffs=$(echo "$diffs" | sed 'N;$!P;$!D;$d')
|
diffs=$(echo "$diffs" | sed 'N;$!P;$!D;$d')
|
||||||
set -e
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "x$diffs" == "x" ] ; then
|
if [ "x$diffs" == "x" ] ; then
|
||||||
|
|
Loading…
Reference in New Issue