vulcanizer/script/revision

11 строки
159 B
Bash
Executable File

#!/bin/bash
git_revision=$(git rev-parse HEAD)
if [ $? -eq 0 ]; then
echo "$git_revision"
exit 0
fi
echo "Could not find revision" >> /dev/stderr
exit 1