mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 15:31:22 +01:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user