# EQ Linux # get the json from the repo api and assign it to the txt file # This grads the json file from the API curl -u > outputtest.txt # Reformats the json block to proper json (removes the newlines) string=$(cat temp.txt) # Replace the "private" value to false find='"private": true' replace='"private": false' string2=${string/$find/$replace} # push the json block into a txt file echo $string2 > output.txt # Post the updated JSON data to the repo curl -u --data @output.txt