From 8ce9bfea5999f3a12fdca2a69af07e9be98b7178 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Wed, 13 Nov 2024 21:09:03 +0300 Subject: [PATCH] chore: tweak error message --- contrib/containers/guix/scripts/guix-check | 2 +- contrib/containers/guix/scripts/guix-start | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/containers/guix/scripts/guix-check b/contrib/containers/guix/scripts/guix-check index 4958c1bb36..12c9983753 100755 --- a/contrib/containers/guix/scripts/guix-check +++ b/contrib/containers/guix/scripts/guix-check @@ -5,7 +5,7 @@ set -eo pipefail WORKSPACE_PATH="${1:-$(pwd)}" if [[ ! -d "${WORKSPACE_PATH}" || ! "${WORKSPACE_PATH}" = /* || ! -f "${WORKSPACE_PATH}/contrib/guix/libexec/prelude.bash" ]]; then - echo "${0}: ${WORKSPACE_PATH} is not a valid directory, exiting!" + echo "${0##*/}: ${WORKSPACE_PATH} is not the top directory of the Dash Core repository, exiting!" exit 1 fi diff --git a/contrib/containers/guix/scripts/guix-start b/contrib/containers/guix/scripts/guix-start index 42238e1d67..2d71193052 100755 --- a/contrib/containers/guix/scripts/guix-start +++ b/contrib/containers/guix/scripts/guix-start @@ -5,7 +5,7 @@ set -eo pipefail WORKSPACE_PATH="${1:-$(pwd)}" if [[ ! -d "${WORKSPACE_PATH}" || ! "${WORKSPACE_PATH}" = /* || ! -f "${WORKSPACE_PATH}/contrib/guix/guix-build" ]]; then - echo "${0}: ${WORKSPACE_PATH} is not a valid directory, exiting!" + echo "${0##*/}: ${WORKSPACE_PATH} is not the top directory of the Dash Core repository, exiting!" exit 1 fi