From 1849d9005a21eea5961bc62ab45d17dc14958594 Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 9 Jan 2023 13:19:40 -0800 Subject: [PATCH] upload_s3: move arguments to the top (#170) --- upload_s3.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upload_s3.sh b/upload_s3.sh index 1b0a24a..21342c0 100755 --- a/upload_s3.sh +++ b/upload_s3.sh @@ -1,5 +1,8 @@ set -eu +DEST="$1" +GIT_ISH="$2" + # If the revision directory has already been created in S3 somehow, we don't want to reupload if aws s3 ls "$AWS_BUCKET"/"$GIT_ISH"/; then echo "Revision $GIT_ISH was already uploaded; exiting" @@ -8,9 +11,6 @@ fi sudo chown $USER: -R artifacts/ -DEST="$1" -GIT_ISH="$2" - mkdir "$GIT_ISH" sed -i "s@https://install.determinate.systems/nix@https://install.determinate.systems/nix/rev/$GIT_ISH@" nix-installer.sh