1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

getRevision: silence error if Revision.h doesn't exist

This commit is contained in:
Rosalie Wanders 2020-09-30 13:32:50 +02:00 committed by Sergey Lipskiy
parent 80ecddd574
commit 4f5a763666

View File

@ -1,6 +1,6 @@
SCRIPT_DIRECTORY=`dirname $0`
rev=\"`git rev-parse --short HEAD`\"
lastrev=$(head -n 1 $SCRIPT_DIRECTORY/Revision.h | awk -F'PLUGIN_REVISION ' {'print $2'})
lastrev=$(head -n 1 $SCRIPT_DIRECTORY/Revision.h 2> /dev/null | awk -F'PLUGIN_REVISION ' {'print $2'})
echo current revision $rev
echo last build revision $lastrev