DEV Community

Discussion on: A tiny "Deployer" made with Shell Script and Rsync

Collapse
 
tonypelliccio profile image
Tony Pellicccio

From a systems perspective you don't wan to launch a new shell by using sh. Instead ./scriptname.sh whilst in the same directory will work too. And if you have to be root sudo su - will work just as well.

Collapse
 
felipperegazio profile image
Felippe Regazio • Edited

Nice point, Tony. You're right. I updated the post with your information.