Curious to know if the following pseudo code could be written in a shell script:
if(os_name == "ubuntu"):
run(apt-get update)
elif(os_name == "RHEL"):
run(yum update)
Curious to know if the following pseudo code could be written in a shell script:
if(os_name == "ubuntu"):
run(apt-get update)
elif(os_name == "RHEL"):
run(yum update)