I have the following code where if a certain condition is true i try to execute a python code inside a shell script. The issue is i keep getting an IndentationError: unexpected indent
and i am not sure why because this indention works fine when i execute the python code outside of the if statement.
if [ ! -z "$INSTANCE_ID" ]
then
python -c \
"""
from mydbmodule import db
update_string = \
'Update release_status SET release_deployed_at = NOW() \
where release_deployed_at is null'
db.execute(db.get_environment(), update_string)
"""
fi