From c1aad03c68d9527bc3ca3622ec3b695132c237fc Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 25 Mar 2024 20:09:04 +0100 Subject: [PATCH] bootstrap --- cd-bootstrap.sh => bootstrap.sh | 0 cd.sh | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) rename cd-bootstrap.sh => bootstrap.sh (100%) diff --git a/cd-bootstrap.sh b/bootstrap.sh similarity index 100% rename from cd-bootstrap.sh rename to bootstrap.sh diff --git a/cd.sh b/cd.sh index 583d97d..f04df33 100644 --- a/cd.sh +++ b/cd.sh @@ -5,7 +5,6 @@ PACKAGES=( 'git' ) REPOSITORY='rwx.work/cd' -TARGET='/usr/local/sbin' for nameserver in "${NAMESERVERS[@]}" ; do echo "nameserver ${nameserver}" \ @@ -19,9 +18,10 @@ apt-get update \ apt-get install --yes "${PACKAGES[@]}" \ || exit +DIRECTORY="$(mktemp --directory)" \ +|| exit git clone \ "${GITHUB_SERVER_URL}/${REPOSITORY}" \ -"${TARGET}" \ +"${DIRECTORY}" \ || exit - -cd-bootstrap.sh +"${DIRECTORY}/bootstrap.sh"