update script
The changes ensures that only valid branches is used and sets the correct branch name based on the first argument provided.
The keyring setup has been enhanced to counter for errors thrown if the pacman.d folder and the mirrorlist file was not available. This ensures that keyring initialization executes without errors.