update script permission