#!/usr/bin/bash # make sure we have tuna installed if rpm -q --quiet tuna; then : else sudo dnf install -y tuna if [[ $? != 0 ]]; then echo "install of tuna failed!" exit 1 fi fi # run a simple command to show help tuna --help if [[ $? != 0 ]]; then exit 2 fi exit 0