mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use shell 'command' instead of 'which' in tutorials
This commit is contained in:
@ -1,10 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! which gnuplot > /dev/null 2>&1
|
||||
then
|
||||
echo "gnuplot not found - skipping graph creation" >&2
|
||||
# Test if gnuplot exists on the system
|
||||
command -v gnuplot >/dev/null 2>&1 || {
|
||||
echo "gnuplot not found - skipping graph creation" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
gnuplot<<EOF
|
||||
set terminal postscript eps color enhanced "Helvetica,20"
|
||||
|
||||
Reference in New Issue
Block a user