Skip to content

Commit

Permalink
Check the output directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Scavo committed May 7, 2017
1 parent aaa35e7 commit a275c96
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/process_export_aggregate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ if $help_mode; then
fi

# check the output directory
if [ -z "$out_dir" ]; then
echo "ERROR: $script_name: no output directory specified" >&2
exit 2
fi
if [ ! -d "$out_dir" ]; then
echo "ERROR: $script_name: directory does not exist: $out_dir" >&2
exit 2
Expand Down
4 changes: 4 additions & 0 deletions bin/process_main_aggregate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ if $help_mode; then
fi

# check the output directory
if [ -z "$out_dir" ]; then
echo "ERROR: $script_name: no output directory specified" >&2
exit 2
fi
if [ ! -d "$out_dir" ]; then
echo "ERROR: $script_name: directory does not exist: $out_dir" >&2
exit 2
Expand Down

0 comments on commit a275c96

Please sign in to comment.