Skip to content

Commit 6d6463e

Browse files
committed
drop some of the excess loggign
1 parent ae7c547 commit 6d6463e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

scripts/deploy_to_hf.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -563,19 +563,14 @@ if [ "$PRIVATE" = true ]; then
563563
PRIVATE_FLAG="--private"
564564
fi
565565

566-
echo "Creating space: $SPACE_REPO"
567-
echo "Command: hf repo create $SPACE_REPO --repo-type space --space_sdk docker --exist-ok $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"}"
568-
# create the space if it doesn't exist
569566
CREATE_OUTPUT=$(hf repo create "$SPACE_REPO" --repo-type space --space_sdk docker --exist-ok $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"} 2>&1)
570567
CREATE_EXIT_CODE=$?
571568
if [ $CREATE_EXIT_CODE -ne 0 ]; then
572569
echo "⚠️ Space creation returned non-zero exit code" >&2
573570
echo "$CREATE_OUTPUT" >&2
574-
# Continue anyway - space might already exist
571+
exit 1
575572
fi
576573

577-
echo "Uploading files to space: $SPACE_REPO"
578-
echo "Command: hf upload --repo-type=space $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"} $SPACE_REPO $CURRENT_STAGING_DIR_ABS"
579574
# upload the staged content (if repo doesn't exist, it will be created with the privacy setting)
580575
SPACE_UPLOAD_RESULT=$(hf upload --repo-type=space $PRIVATE_FLAG ${TOKEN_ARGS[@]+"${TOKEN_ARGS[@]}"} "$SPACE_REPO" "$CURRENT_STAGING_DIR_ABS" 2>&1)
581576
UPLOAD_EXIT_CODE=$?

0 commit comments

Comments
 (0)