update_asr(8): fix argument handling

Passing in labels of specific services did not actually work at all.

Change-Id: I9501bc0206f0ce5cf064f1453fdf171c4c930aae
This commit is contained in:
David van Moolenbroek 2015-11-11 05:46:19 +01:00 committed by Lionel Sambuc
parent bdb565187c
commit fe7ecbbff1

View File

@ -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