#!/bin/bash set -e set -x ROOT="$(cd `dirname "$0"`; pwd)" cd "$ROOT" #ST=`pgrep coolkbd` if ! pgrep -f coolkbd.dock then ./coolkbd.dock else pkill coolkbd.dock fi