Add the wait
command.
su username -c "cd /home/username/ ; git something.com"; wait
This will tell the script to wait for the sub-process to finish.
Add the wait
command.
su username -c "cd /home/username/ ; git something.com"; wait
This will tell the script to wait for the sub-process to finish.