I have bash script (named main.sh). Which looks something like:
#!/usr/bin/env bash
java -jar some.jar --test='{"prop": "My best 'app'"}'
When I run this bash script. I get:
bash -x main.sh
+ java -jar some.jar '--test={"prop": "My best app"}'
The single quotes around app are missing. How can I modify this bash script such that the single quotes around app are preserved?
I did check this question: Escape single quote within double quote within single quote but it didnt solve my issue.