File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -563,19 +563,14 @@ if [ "$PRIVATE" = true ]; then
563563 PRIVATE_FLAG=" --private"
564564fi
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
569566CREATE_OUTPUT=$( hf repo create " $SPACE_REPO " --repo-type space --space_sdk docker --exist-ok $PRIVATE_FLAG ${TOKEN_ARGS[@]+" ${TOKEN_ARGS[@]} " } 2>&1 )
570567CREATE_EXIT_CODE=$?
571568if [ $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
575572fi
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)
580575SPACE_UPLOAD_RESULT=$( hf upload --repo-type=space $PRIVATE_FLAG ${TOKEN_ARGS[@]+" ${TOKEN_ARGS[@]} " } " $SPACE_REPO " " $CURRENT_STAGING_DIR_ABS " 2>&1 )
581576UPLOAD_EXIT_CODE=$?
You can’t perform that action at this time.
0 commit comments