Sorry you've been toiling away at this for a week, let me try and help. Some questions:
Would you mind sharing the shell script, or the snippet?
Could you show us the output of the script? Does it error out on the liquibase command?
How are you executing the shell script? Is it through some automation orchestration (ex. Jenkins) or are you executing the shell script by hand?
Thanks,
Ronak