File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -563,6 +563,8 @@ 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[@]} " } "
566568# create the space if it doesn't exist
567569CREATE_OUTPUT=$( hf repo create " $SPACE_REPO " --repo-type space --space_sdk docker --exist-ok $PRIVATE_FLAG ${TOKEN_ARGS[@]+" ${TOKEN_ARGS[@]} " } 2>&1 )
568570CREATE_EXIT_CODE=$?
@@ -572,6 +574,8 @@ if [ $CREATE_EXIT_CODE -ne 0 ]; then
572574 # Continue anyway - space might already exist
573575fi
574576
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 "
575579# upload the staged content (if repo doesn't exist, it will be created with the privacy setting)
576580SPACE_UPLOAD_RESULT=$( hf upload --repo-type=space $PRIVATE_FLAG ${TOKEN_ARGS[@]+" ${TOKEN_ARGS[@]} " } " $SPACE_REPO " " $CURRENT_STAGING_DIR_ABS " 2>&1 )
577581UPLOAD_EXIT_CODE=$?
You can’t perform that action at this time.
0 commit comments