ensure that -l is an int
This commit is contained in:
parent
33e8cd7f32
commit
d5dc9c8f45
2
pash
2
pash
|
@ -115,7 +115,7 @@ get_args() {
|
||||||
|
|
||||||
while getopts ":ncvql:" opt; do case $opt in
|
while getopts ":ncvql:" opt; do case $opt in
|
||||||
n) plain=1 ;;
|
n) plain=1 ;;
|
||||||
l) length=$((OPTARG>300?300:OPTARG)) ;;
|
l) length=${OPTARG//[^0-9]} ;;
|
||||||
c) clipboard=1 ;;
|
c) clipboard=1 ;;
|
||||||
q) quiet=1 ;;
|
q) quiet=1 ;;
|
||||||
v) printf '%s\n' "pash 0.01"; exit ;;
|
v) printf '%s\n' "pash 0.01"; exit ;;
|
||||||
|
|
Loading…
Reference in New Issue