0

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)
kkpareek
  • 190
  • 3
  • 11
  • Does [How can I get distribution name and version number in a simple shell script?](https://unix.stackexchange.com/a/6348/266568) answer your question? – U880D Jun 22 '21 at 08:03

0 Answers0