#!/usr/bin/env bash check_port(){ port=$1 if ss -tuln | grep -q ":$port ";then return 0 else return 1 fi }