WSL2 & Docker & Gateway Update Script

Hello, I'm trying to implement the auto-save script that is mentioned in the best practice but under docker and I've some issues when trying to call the git-auto-commit.bat routine.
I already did the initial commit to GitLab but when I try to call the routine, it gives an error as the file is not found.
this is my update script content:


import time
filePath = "data/projects/tags.json"
system.tag.exportTags(filePath=filePath, tagPaths=["[default]"])
time.sleep(5)
system.util.execute(['data/git-auto-commit.sh'])

but I'm getting this error:

so I undersand that maybe I need to provide some extra permissions or credentials but I don't find how to do it.

thanks in advance!

kind regards,
MF

Tip: Wiki - how to post code on this forum.

1 Like

Hi, I fixed the permission issue attaching a shell to the running container and then, giving to the file git-auto-commit.sh the excecute rights...
I just used
chmod +x git-auto-commit.sh
but I don't see any change in my repo, so the script is doing nothing, here below the git-auto-commmit.sh content:

cd data/projects
NOW=$(date +"%m-%d-%Y %H:%M:%S")
git add .
git commit -m "Designer save @ $NOW"
git push origin

thanks in advance!