From 874a45ed1c0f75b19f4867dbb95cd7148b75fbff Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 18 May 2023 10:46:27 +0100 Subject: [PATCH] Add quotes around path in manage_incrementals --- app/scripts/manage_incrementals | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/scripts/manage_incrementals b/app/scripts/manage_incrementals index 41ef799514..6accc725ca 100755 --- a/app/scripts/manage_incrementals +++ b/app/scripts/manage_incrementals @@ -73,15 +73,15 @@ if [ "`uname -o 2> /dev/null`" = "Cygwin" ]; then fi mkdir -p "$DIST_DIR" -aws s3 cp $S3_URL $INCR_PATH >&2 +aws s3 cp $S3_URL "$INCR_PATH" >&2 # Add version to file and reupload if [ "$VERSION" ]; then echo "Adding $VERSION to incrementals-$PLATFORM" - echo $VERSION >> $INCR_PATH - aws s3 cp $INCR_PATH $S3_URL + echo $VERSION >> "$INCR_PATH" + aws s3 cp "$INCR_PATH" $S3_URL # Show last n versions elif [ "$NUM_VERSIONS" ]; then - tail -n $NUM_VERSIONS $INCR_PATH + tail -n $NUM_VERSIONS "$INCR_PATH" fi -rm $INCR_PATH +rm "$INCR_PATH"