makerpms.sh: make git checkout optional

In case someone is using the script from tarball, outside of git,
the git checkout command shouldn't fail the script.

Related https://pagure.io/freeipa/issue/6605

Signed-off-by: Tomas Krizek <tkrizek@redhat.com>
Reviewed-By: Pavel Vomacka <pvomacka@redhat.com>
This commit is contained in:
Tomas Krizek 2017-08-17 14:08:22 +02:00
parent bda3dd722b
commit f7d1a10f22
No known key found for this signature in database
GPG Key ID: 22A2A94B5E49415A

View File

@ -28,6 +28,6 @@ make rpms
# Workaround to ignore re-generated *.po files in git repo # Workaround to ignore re-generated *.po files in git repo
# See https://pagure.io/freeipa/issue/6605 # See https://pagure.io/freeipa/issue/6605
git checkout po/*.po git checkout po/*.po ||:
popd popd