mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-26 02:43:02 +00:00
slurm-process: check input files are readable
This commit is contained in:
parent
a69fa9f0f3
commit
79b231198f
1 changed files with 10 additions and 1 deletions
|
@ -36,8 +36,17 @@ if [[ -z "${OUTPUT}" ]]; then
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -r "${RAINFALL}" ]]; then
|
||||||
|
echo "Error: That input rainfall file either doesn't exist, isn't a directory, or we don't have permission to access it.";
|
||||||
|
exit 3;
|
||||||
|
fi
|
||||||
|
if [[ ! -r "${WATER}" ]]; then
|
||||||
|
echo "Error: That input water depth file either doesn't exist, isn't a directory, or we don't have permission to access it.";
|
||||||
|
exit 3;
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ ! -d "${OUTPUT}" ]]; then
|
if [[ ! -d "${OUTPUT}" ]]; then
|
||||||
echo "Error: That input directory either doesn't exist, isn't a directory, or we don't have permission to access it.";
|
echo "Error: That output directory either doesn't exist, isn't a directory, or we don't have permission to access it.";
|
||||||
exit 3;
|
exit 3;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue