Update deploy.sh

Fix logic error with patch switch