aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2024-12-02 11:03:35 +0000
committerAnup Patel <anup@brainfault.org>2024-12-15 12:30:50 +0530
commit2c76548cba7f0acf9f747d765e3363044e0b8ee0 (patch)
tree870bf6e65196694ec373fdaead228f448aa8781f
parenta36cd1b043d5f3f50fee43ab5b97754f6a8ec377 (diff)
downloadopensbi-2c76548cba7f0acf9f747d765e3363044e0b8ee0.zip
opensbi-2c76548cba7f0acf9f747d765e3363044e0b8ee0.tar.gz
opensbi-2c76548cba7f0acf9f747d765e3363044e0b8ee0.tar.bz2
script/carry.sh: send error to stderr
Send the errors to stderr, otherwise they end up being written to the file the script was redirecting to in the Makefile Also, use EOF block to make it easier to redirect Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Reviewed-by: Anup Patel <anup@brainfault.org>
-rwxr-xr-xscripts/carray.sh14
1 files changed, 8 insertions, 6 deletions
diff --git a/scripts/carray.sh b/scripts/carray.sh
index fb985c8..a2b05d3 100755
--- a/scripts/carray.sh
+++ b/scripts/carray.sh
@@ -2,12 +2,14 @@
function usage()
{
- echo "Usage:"
- echo " $0 [options]"
- echo "Options:"
- echo " -h Display help or usage"
- echo " -i <input_config> Input config file"
- echo " -l <variable_list> List of variables in the array (Optional)"
+ cat <<EOF >&2
+Usage: $0 [options]
+
+Options:
+ -h Display help or usage
+ -i <input_config> Input config file
+ -l <variable_list> List of variables in the array (Optional)
+EOF
exit 1;
}