From: David van Moolenbroek Date: Wed, 11 Nov 2015 04:46:19 +0000 (+0100) Subject: update_asr(8): fix argument handling X-Git-Url: http://zhaoyanbai.com/repos/man.named.html?a=commitdiff_plain;h=fe7ecbbff1dac8d228a90f24ecb338ca4e80d9c6;p=minix.git update_asr(8): fix argument handling Passing in labels of specific services did not actually work at all. Change-Id: I9501bc0206f0ce5cf064f1453fdf171c4c930aae --- diff --git a/minix/commands/update_asr/update_asr.sh b/minix/commands/update_asr/update_asr.sh index 503eda0a3..2b6af99bd 100644 --- a/minix/commands/update_asr/update_asr.sh +++ b/minix/commands/update_asr/update_asr.sh @@ -55,7 +55,10 @@ shift $(($OPTIND - 1)) if [ $# -eq 0 ]; then services=$(echo /proc/service/*) else - services="$@" + services= + for label in $@; do + services="$services /proc/service/$label" + done fi for service in $services; do