I need to create a shell script (run.sh) file that executes my python code present in Git repository and append it to the repo. Since this is my first time, I am confused about how to create the run.sh file and in what language.
Assuming the output is in stdout, something like this might work:
#! /bin/bash
python main.py >> log
git add log
git commit -m 'update log'
git push -u origin
I have to admit though, I'm not sure this is what you are asking for. Please clarify :)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.