#! /bin/sh -e cmd="$1" oldruntime="$2" newruntime="$3" [ "$cmd" = rtupdate ] || exit 0 if which python >/dev/null 2>&1 && which pycentral >/dev/null 2>&1; then pycentral updatedefault $oldruntime $newruntime else echo >&2 "python or pycentral not found in $(basename $0) hook." exit 1 fi