Skip to content

Commit

Permalink
Improve verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
frede791 authored Dec 18, 2023
1 parent bdc7bcf commit c78f7f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fuel_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ while IFS= read -r line; do

# Delete the model from if it exists and is encountered for the first time.
if [[ $model != $prev_model ]] && ([[ $type == "models" ]] || [[ $type == "worlds" ]]); then
echo "Trying to delete $model from fuel server"
gz fuel delete --header 'Private-token: $FUEL_TOKEN' --url https://fuel.gazebosim.org/1.0/PX4/$type/$model -o PX4
echo "Trying to delete $type/$model from fuel server"
gz fuel delete --header "Private-token: $FUEL_TOKEN" --url https://fuel.gazebosim.org/1.0/PX4/$type/$model -o PX4

# If you want to modify or add a model, reupload it.
if [[ "$line" == "A"* || "$line" == "M"* ]]; then
echo "Uploading $model to fuel server"
echo "Uploading $type/$model to fuel server"
gz fuel upload -m ./$type/$model -o PX4 --header "Private-token: $FUEL_TOKEN" --url https://fuel.gazebosim.org
fi

Expand Down

0 comments on commit c78f7f0

Please sign in to comment.