commit 7b8bc6936a9fc31c0a95c3a3e90eeffa71aea060
parent 0025df9951f278d211357d46bc38b2bb5f1e873e
Author: clamiax <smoppy@gmail.com>
Date: Sun, 25 May 2014 13:59:27 +0200
Fix show() and remove -l flag.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/vegask b/vegask
@@ -46,7 +46,7 @@ show() {
fullname="$(echo $item |cut -d'|' -f1)"
occupation="$(echo $item |cut -d'|' -f2)"
country="$(echo $item |cut -d'|' -f3)"
- echo "$name, $profession. ($country)"
+ echo "$fullname, $occupation. ($country)"
}
pick() {
@@ -70,11 +70,10 @@ main() {
LIMIT=0
RANDOMIZE=0
- while getopts "hulr1n:" opt; do
+ while getopts "hur1n:" opt; do
case $opt in
h) usage;;
u) UPDATE=1;;
- l) LIMIT="$(wc -l $DB |cut -d' ' -f1)";;
n) LIMIT=$OPTARG;;
1) LIMIT=1;;
r) RANDOMIZE=1;;