[d/forgejo] clean before compiling

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2023-08-22 07:39:28 +02:00
parent 94f5363752
commit a22dfca5ab
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -26,7 +26,7 @@ if [ "$(id -g gitea 2> /dev/null)" != "817" ] || [ "$(id -u gitea 2> /dev/null)"
fi fi
# nettoyage préalable # nettoyage préalable
rm -r "$PKG" "{$TMP:?}/$PRGNAM" rm -r "$PKG"
mkdir -p "$PKG" mkdir -p "$PKG"
# mise en place # mise en place
@ -35,7 +35,9 @@ cd "$REPOSITORY" || exit 1
git pull --all git pull --all
mkdir -p "$TMP" mkdir -p "$TMP"
cp -r "$REPOSITORY" "$TMP/" cd "$TMP" || exit 1
[ -e "$PRGNAM" ] && rm -r "$PRGNAM"
cp -r "$REPOSITORY" .
cd "$TMP/$PRGNAM" || exit 1 cd "$TMP/$PRGNAM" || exit 1
case $VERSION in case $VERSION in