From fd421ebf88653455d8547f546e887cf5c5bfb890 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 7 Oct 2014 15:29:39 +0100 Subject: [PATCH] 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. --- p2v/virt-p2v-make-kickstart.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/p2v/virt-p2v-make-kickstart.in b/p2v/virt-p2v-make-kickstart.in index 967f33948..a2937b3de 100644 --- a/p2v/virt-p2v-make-kickstart.in +++ b/p2v/virt-p2v-make-kickstart.in @@ -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 "