feat: update.sh script refactor