ensure that -l is an int

This commit is contained in:
Dylan Araps 2019-02-25 08:24:50 +02:00
parent 33e8cd7f32
commit d5dc9c8f45
1 changed files with 1 additions and 1 deletions

2
pash
View File

@ -115,7 +115,7 @@ get_args() {
while getopts ":ncvql:" opt; do case $opt in
n) plain=1 ;;
l) length=$((OPTARG>300?300:OPTARG)) ;;
l) length=${OPTARG//[^0-9]} ;;
c) clipboard=1 ;;
q) quiet=1 ;;
v) printf '%s\n' "pash 0.01"; exit ;;