From 596083b29a3f50191ed6d044bf1a2736d24823d5 Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 11 Aug 2024 16:16:42 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20Committing=20everything?= =?UTF-8?q?=20that=20changed=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/root/docker/setup/05-custom.sh --- rootfs/root/docker/setup/05-custom.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rootfs/root/docker/setup/05-custom.sh b/rootfs/root/docker/setup/05-custom.sh index 105d215..cb87519 100755 --- a/rootfs/root/docker/setup/05-custom.sh +++ b/rootfs/root/docker/setup/05-custom.sh @@ -39,7 +39,8 @@ fi # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Main script echo "Dowloading gitea from $GITEA_URL" -if curl -q -LSsf "$GITEA_URL" -o "$GITEA_BIN_FILE"; then +if curl -q -LSsf "$GITEA_URL" -o "/tmp/gitea.$$"; then + mv -fv "/tmp/gitea.$$" "$GITEA_BIN_FILE" echo "gitea has been installed to: $GITEA_BIN_FILE" chmod +x "$GITEA_BIN_FILE" if [ -d "/etc/sudoers.d" ]; then @@ -51,7 +52,8 @@ else exitCode=$((exitCode++)) fi echo "Downloading act_runner from $ACT_URL" -if curl -q -LSsf "$ACT_URL" -o "$ACT_BIN_FILE"; then +if curl -q -LSsf "$ACT_URL" -o "/tmp/act_runner.$$"; then + mv -fv "/tmp/act_runner.$$" "$ACT_BIN_FILE" echo "act_runner has been installed to: $ACT_BIN_FILE" chmod +x "$ACT_BIN_FILE" else