mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user