Missing REVISION before rm
This commit is contained in:
parent
740a4b25f5
commit
aeb7f862ef
@ -22,7 +22,7 @@ DIRNAME="${PROJECTNAME_DEB}_$1-rev$REVISION"
|
|||||||
FILENAME="${PROJECTNAME_DEB}_$1.rev$REVISION.orig.tar.gz"
|
FILENAME="${PROJECTNAME_DEB}_$1.rev$REVISION.orig.tar.gz"
|
||||||
SOURCE="https://github.com/$SOURCE/releases/download/$1/$PROJECTNAME-$1.tar.gz"
|
SOURCE="https://github.com/$SOURCE/releases/download/$1/$PROJECTNAME-$1.tar.gz"
|
||||||
PREVVERSION=$(find . -maxdepth 1 -type d | sort -r | head -n1)
|
PREVVERSION=$(find . -maxdepth 1 -type d | sort -r | head -n1)
|
||||||
if [[ "$PREVVERSION" =~ .*$1.* ]]; then
|
if [[ "$PREVVERSION" =~ .*$1-rev$REVISION.* ]]; then
|
||||||
rm -rf *$1*
|
rm -rf *$1*
|
||||||
PREVVERSION=$(find . -maxdepth 1 -type d | sort -r | head -n1)
|
PREVVERSION=$(find . -maxdepth 1 -type d | sort -r | head -n1)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user