The previous script stopped working. Only at times it synced when you were to install a theme. The above code works all the time but uses a constant "checking" of the folders. What do you think about it? Courtesy of chatgpt hahaha
Also implemented some changes suggested by [Shellcheck](https://github.com/koalaman/shellcheck)