]> xenbits.xensource.com Git - osstest.git/commitdiff
mgi-common: Fix fetch_debian_package error message
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 7 Jun 2023 16:30:04 +0000 (16:30 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 28 Mar 2024 16:51:52 +0000 (16:51 +0000)
$@ expand to two or more words, but fail() only take one argument.
So if there's more than one argument left, fail() only shows the first
one, and don't event display "not found".

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
mgi-common

index 6ce34162a24679b5afd8b60463997ee1cb3b9395..98f795b16151b880cca314786721214efb4afde3 100644 (file)
@@ -49,7 +49,7 @@ fetch_debian_package () {
     set -e
 
     if [ $rc -ne 0 ] || [ x$pkgfile = x ]; then
-       fail "package matching $@ not found";
+       fail "package matching $* not found";
     fi
 
     fetch "$site/$pkgfile"