mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +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;
|
||||
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
|
||||
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;
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue