diff --git a/scripts/status b/scripts/status index 17d5b73a..917fafe8 100755 --- a/scripts/status +++ b/scripts/status @@ -52,7 +52,14 @@ check_local_state() { log_debug "cd $NGCPCTL_MAIN" cd "$NGCPCTL_MAIN" - log_info "Checking state of ngcpcfg:" + # report either "ngcpcfg" or "ngcp-config", depending on how it was invoked + local invoker + if [ -r "/proc/${PPID:-doesnotexist}/comm" ] ; then + invoker="$( < /proc/$PPID/comm)" + fi + + log_info "Checking state of ${invoker:-ngcpcfg}:" + if ! [ -r "${NGCPCTL_MAIN}/.git/HEAD" ] ; then log_warn "ngcpcfg has not been initialised yet. Execute 'ngcpcfg initialise'." exit 0