]> Zhao Yanbai Git Server - minix.git/commitdiff
update_asr(8): fix argument handling 28/3228/2
authorDavid van Moolenbroek <david@minix3.org>
Wed, 11 Nov 2015 04:46:19 +0000 (05:46 +0100)
committerLionel Sambuc <lionel.sambuc@gmail.com>
Wed, 13 Jan 2016 19:32:28 +0000 (20:32 +0100)
Passing in labels of specific services did not actually work at all.

Change-Id: I9501bc0206f0ce5cf064f1453fdf171c4c930aae

minix/commands/update_asr/update_asr.sh

index 503eda0a3937b3bf507c3214377c00afc9f92b46..2b6af99bdfd8a59f8b346f06b301b55c19880974 100644 (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