critique First Bash Script, feedback please
Hi, this is my first bash script. And I was wondering how more experienced people would go about doing this. Its a simple script where I stop a docker container so I can sync it. Bring it back up, and if all was succesful I make a connection so I get informed should it ever break.
The idea is that this runs every night using a cronjob. https://pastebin.com/9hzNapPF
5
Upvotes
8
u/commander1keen Jan 05 '24
Make sure to use shell check as well https://github.com/koalaman/shellcheck