From be719eac89f2ef98fc861d708c50d87776af28fa Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: Fri, 9 Nov 2018 12:30:15 +0000 Subject: [PATCH] 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. --- fedora-toolbox | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedora-toolbox b/fedora-toolbox index cdc43a2..8c241a2 100755 --- a/fedora-toolbox +++ b/fedora-toolbox @@ -289,7 +289,7 @@ while [[ "$1" = -* ]]; do echo "Try '$0 --help' for more information." exit 1 fi - arg=$(echo $1 | sed 's/^F\|^f//') + arg=$(echo $1 | sed 's/^F\|^f//' 2>&42) if ! is_integer $arg; then echo "$0: invalid argument for '--release'" echo "Try '$0 --help' for more information."