mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Merge pull request #401 from nicolaiskogheim/effort-above-error-on-NaN
effort: error out on bad value to --above
This commit is contained in:
commit
f40e6c37a6
|
|
@ -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 ))
|
||||
|
|
|
|||
Loading…
Reference in a new issue