From f7d1a10f22548fb2c1eba99a3001c6da49605edd Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Aug 18 2017 09:46:13 +0000 Subject: 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 Reviewed-By: Pavel Vomacka --- diff --git a/makerpms.sh b/makerpms.sh index 9cbc1cf..a701d36 100755 --- a/makerpms.sh +++ b/makerpms.sh @@ -28,6 +28,6 @@ make rpms # Workaround to ignore re-generated *.po files in git repo # See https://pagure.io/freeipa/issue/6605 -git checkout po/*.po +git checkout po/*.po ||: popd