#!/bin/bash check_installed() { if ! command -v $1 &> /dev/null then echo "$1: Is not installed" else echo "$1: Is installed" fi }