p2v: Fix virt-p2v-make-kickstart so it won't fail when using a custom repo.

Because of `set -e', using the `((i++))' expression causes bash to
fail, unless we tell it to ignore the error code on that line.
This commit is contained in:
Richard W.M. Jones
2014-10-07 15:29:39 +01:00
parent b81256581b
commit fd421ebf88

View File

@@ -124,7 +124,7 @@ repo --name=koji --baseurl=http://koji.fedoraproject.org/repos/rawhide/latest/\$
;;
*)
# A custom repo is just a URL.
((i++))
((i++)) ||:
repos="$repos
repo --name=custom$i --baseurl=$repo $proxy
"