16 lines
195 B
Bash
16 lines
195 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
. /etc/os-release
|
|
|
|
case $ID in
|
|
"debian" )
|
|
sudo apt update -y && sudo apt upgrade -y
|
|
;;
|
|
"rhel" )
|
|
sudo dnf update -y
|
|
;;
|
|
esac
|
|
|