Force output file spec

This commit is contained in:
Raman Gupta 2020-07-15 01:12:34 -04:00
parent 24882e4397
commit 3c091969d5

5
scan
View File

@ -131,6 +131,11 @@ if [ $USEARRAY = 0 -a -f "$OUTPUT" -a ! $APPEND = 1 ]; then
exit 1
fi
if [ "$OUTPUT" = "" ]; then
echo >&2 "Output file must be specified. Aborting."
exit 1
fi
if [ $USEARRAY = 1 -a ! $APPEND = 1 ]; then
for o in "${OUTPUT[@]}"; do
if [ -f "$o" ]; then