mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
effort: error on bad value to --above
This commit is contained in:
parent
651a2bac97
commit
6ebfdc5329
|
|
@ -140,6 +140,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