Updated sonar.sh to use update.sh instead of duplicating logic