Merge pull request #401 from nicolaiskogheim/effort-above-error-on-NaN

effort: error out on bad value to --above
This commit is contained in:
hemanth.hm 2015-07-25 13:05:00 +05:30
commit f40e6c37a6

View file

@ -147,6 +147,12 @@ do
esac
done
# Exit if above-value is not an int
if [ -z "${above##*[!0-9]*}" ] ; then
echo "error: argument to --above was not an integer" 1>&2
exit 1
fi
args_before_above=`printf " %q" "${@:1:$above_index}"`
num_args=$(( i - num_files ))