#!/bin/bash while true do srv=`kubectl get gs | grep craft-univ-1 | awk '{print $3,$4}'` if [ ! -z "$srv" ] then /Applications/Craft.app/Contents/MacOS/Craft $srv fi sleep 20 done