su -c/sudo update

Fixed #! /bin/bash bug and adapted the script so that it works with su -c and sudo too.