Hide the error output from sed(1) unless --verbose is used

It's unlikely that sed(1) will generate any error output, but still
it's good to handle it for the sake of completeness.
This commit is contained in:
Debarshi Ray 2018-11-09 12:30:15 +00:00
parent cc0caef627
commit be719eac89

View file

@ -289,7 +289,7 @@ while [[ "$1" = -* ]]; do
echo "Try '$0 --help' for more information." echo "Try '$0 --help' for more information."
exit 1 exit 1
fi fi
arg=$(echo $1 | sed 's/^F\|^f//') arg=$(echo $1 | sed 's/^F\|^f//' 2>&42)
if ! is_integer $arg; then if ! is_integer $arg; then
echo "$0: invalid argument for '--release'" echo "$0: invalid argument for '--release'"
echo "Try '$0 --help' for more information." echo "Try '$0 --help' for more information."