Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

In the load.sh script, the ${NAME} variable will not be expanded because it is within single quotes. #55

Open
tghfly opened this issue Jan 13, 2024 · 0 comments

Comments

@tghfly
Copy link

tghfly commented Jan 13, 2024

#!/bin/bash 
NAME=$1
curl "http://12.102.210.202:80/models/apply" -H "Content-Type: application/json" -d "
{
     \"url\": \"http://192.168.5.242:16000/model-gallery/${NAME}.yaml\",
     \"name\": \"${NAME}\"
}"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant