STYLE: remove unnecessary stdout, stderr /dev/null redirects

- no stderr redirect needed:
    * 'command -v'

- no stdout/stderr redirect needed:
    * 'rm -f'

STYLE: consistent spacing after redirects
This commit is contained in:
Mark Olesen
2019-11-06 10:44:36 +01:00
committed by Andrew Heather
parent ec7e3c88e4
commit e6dfb39c66
131 changed files with 281 additions and 282 deletions

View File

@ -7,7 +7,7 @@
# \\/ M anipulation |
#------------------------------------------------------------------------------
# Copyright (C) 2015-2016 OpenFOAM Foundation
# Copyright (C) 2018 OpenCFD Ltd.
# Copyright (C) 2018-2019 OpenCFD Ltd.
#------------------------------------------------------------------------------
# License
# This file is part of OpenFOAM.
@ -138,7 +138,7 @@ do
-webm)
# webm - needs avconv
outputFormat=webm
command -v avconv >/dev/null 2>&1 || \
command -v avconv >/dev/null || \
die "webm format requires avconv, which was not found."
;;
-*)
@ -168,7 +168,7 @@ echo
if [ "$outputFormat" = webm ]
then
if command -v avconv >/dev/null 2>&1
if command -v avconv >/dev/null
then
echo "Creating video with avconv..."
avconv \
@ -180,7 +180,7 @@ then
die "webm format requires avconv, which was not found."
fi
else
if command -v avconv >/dev/null 2>&1
if command -v avconv >/dev/null
then
echo "Creating video with avconv..."
avconv \
@ -189,7 +189,7 @@ else
-c:v libx264 -pix_fmt yuv420p \
"$outputPrefix.$outputFormat"
elif command -v mencoder >/dev/null 2>&1
elif command -v mencoder >/dev/null
then
echo "Creating video with mencoder..."
mencoder \