From df08b822001d6451accb4e165c66837236f9ae2e Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Mon, 1 Apr 2024 04:29:57 +0200 Subject: [PATCH] try to print to stderr --- setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup.sh b/setup.sh index 9cce2cc..3bfc00b 100755 --- a/setup.sh +++ b/setup.sh @@ -2,9 +2,11 @@ set -eu check_command() { - command -v "$1" >/dev/null 2>&1 + command -v "$1" >/dev/null } +printf "hello from setup.sh\n" 1>&2 + if ! check_command jq; then echo "jq not found. Install it from https://stedolan.github.io/jq" exit 1 @@ -104,7 +106,7 @@ done if [ -n "$VERSION_FILE" ]; then if [ -n "$VERSION" ]; then - echo "Cannot specify both a version and a version file" + echo "Cannot specify both a version and a version file" 1>&2 exit 1 fi