On 10/28/2017 03:27 AM, Alexey Kardashevskiy wrote: > On 28/10/17 00:14, Daniel P. Berrange wrote: >> If going back in time in git history, across a commit that introduces a new >> submodule, the 'git-submodule.sh' script will fail, causing rebuild to fail. >>
>> +do >> + $GIT submodule status $m 1> /dev/null 2>&1 >> + if test $? == 0 > > > ./scripts/git-submodule.sh: 29: test: 0: unexpected operator Ah, right, == is a bashism. > > This helps: > > - if test $? == 0 > + if test "$?" -eq "0" Or 'if test $? = 0' -- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3266 Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature