From a22dfca5ab8bb6ecd3278f99be5f017034bff235 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Tue, 22 Aug 2023 07:39:28 +0200 Subject: [PATCH] [d/forgejo] clean before compiling Signed-off-by: Gwenhael Le Moine --- n/forgejo/SlackBuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/n/forgejo/SlackBuild b/n/forgejo/SlackBuild index b9a3437e..6399d6fc 100755 --- a/n/forgejo/SlackBuild +++ b/n/forgejo/SlackBuild @@ -26,7 +26,7 @@ if [ "$(id -g gitea 2> /dev/null)" != "817" ] || [ "$(id -u gitea 2> /dev/null)" fi # nettoyage préalable -rm -r "$PKG" "{$TMP:?}/$PRGNAM" +rm -r "$PKG" mkdir -p "$PKG" # mise en place @@ -35,7 +35,9 @@ cd "$REPOSITORY" || exit 1 git pull --all mkdir -p "$TMP" -cp -r "$REPOSITORY" "$TMP/" +cd "$TMP" || exit 1 +[ -e "$PRGNAM" ] && rm -r "$PRGNAM" +cp -r "$REPOSITORY" . cd "$TMP/$PRGNAM" || exit 1 case $VERSION in