Added if statement in the script, rather than using || directy in the command.