forked from Mirrors/opensbi
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()
|
function usage()
|
||||||
{
|
{
|
||||||
echo "Usage:"
|
cat <<EOF >&2
|
||||||
echo " $0 [options]"
|
Usage: $0 [options]
|
||||||
echo "Options:"
|
|
||||||
echo " -h Display help or usage"
|
Options:
|
||||||
echo " -i <input_config> Input config file"
|
-h Display help or usage
|
||||||
echo " -l <variable_list> List of variables in the array (Optional)"
|
-i <input_config> Input config file
|
||||||
|
-l <variable_list> List of variables in the array (Optional)
|
||||||
|
EOF
|
||||||
exit 1;
|
exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user