Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check the output directory
Tom Scavo committed May 7, 2017
1 parent aaa35e7 commit a275c96
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/process_export_aggregate.sh
@@ -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
4 changes: 4 additions & 0 deletions bin/process_main_aggregate.sh
@@ -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

0 comments on commit a275c96

Please sign in to comment.