!/bin/bash
test.sh
arch_version=$(arch)
os_version=$(cat /etc/redhat-release)
echo $os_version
if [[ "$arch_version" == "x86_64" ]] && [[ "$os_version" =~ "Red Hat Enterprise Linux Server release 7.7 (Maipo)" ]]
then
echo "OS is ok"
fi
arch_version=$(arch)
os_version=$(cat /etc/redhat-release)
echo $os_version
if [[ "$arch_version" == "x86_64" ]] && [[ "$os_version" =~ "Red Hat Enterprise Linux Server release 7.7 (Maipo)" ]]
then
echo "OS is ok"
fi