From 6d110b1f0eeefae38409acd58e1cd31c72ea9e46 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Thu, 3 Oct 2024 00:15:05 +0700 Subject: [PATCH] build_gitea: fix: remove Temporary dir --- build_gitea/Linux/build.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/build_gitea/Linux/build.sh b/build_gitea/Linux/build.sh index 7b85309..ae9408f 100644 --- a/build_gitea/Linux/build.sh +++ b/build_gitea/Linux/build.sh @@ -1,6 +1,5 @@ #!/bin/bash -MAKE_DIR=$(mktemp -d) DESTINATION=~/gitea-binaries rm -rf $DESTINATION @@ -92,14 +91,14 @@ case $os in * ) wget https://nodejs.org/dist/$NODEJS_VERSION/node-$NODEJS_VERSION-$DISTRO.tar.xz tar -xJvf node-$NODEJS_VERSION-$DISTRO.tar.xz -C $MAKE_DIR - export PATH=$PATH:$MAKE_DIR/node-$NODEJS_VERSION-$DISTRO/bin + export PATH=$PATH:$DESTINATION/node-$NODEJS_VERSION-$DISTRO/bin ;; esac # Golang wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz tar -C $MAKE_DIR -xzf go$GO_VERSION.linux-amd64.tar.gz -export PATH=$PATH:$MAKE_DIR/go/bin +export PATH=$PATH:$DESTINATION/go/bin # Gitea @@ -144,9 +143,5 @@ then mkdir -p $DESTINATION/gitea-static make frontend - mv $MAKE_DIR/gitea/public/* $DESTINATION/gitea-static -fi - -# Cleanup - -rm -rf $MAKE_DIR \ No newline at end of file + mv $DESTINATION/gitea-repo/public/* $DESTINATION/gitea-static +fi \ No newline at end of file