Display git info in pm3_tests.sh only if doable

This should fix the need for https://gitlab.com/kalilinux/packages/proxmark3/-/commit/da550dbec709d1a288ef310776a402c8fdd68e2e#6ab816ab956024f7eb2767197fe7fa5a5d0c5b32
This commit is contained in:
Philippe Teuwen
2021-10-04 21:05:04 +02:00
parent 6f6a3161a9
commit 1cc1a3857f
+7 -5
View File
@@ -216,11 +216,13 @@ if [ "$TRAVIS_COMMIT" ]; then
fi
fi
echo -n "git branch: "
git describe --all
echo -n "git sha: "
git rev-parse HEAD
echo ""
if command -v git >/dev/null && git rev-parse --is-inside-work-tree >/dev/null 2>&1; then
echo -n "git branch: "
git describe --all
echo -n "git sha: "
git rev-parse HEAD
echo ""
fi
while true; do
if $TESTALL || $TESTCOMMON; then