spectrwm/buildver.sh

8 lines
108 B
Bash
Raw Normal View History

#!/bin/sh
CURDIR=$(dirname $0)
if [ -d "$CURDIR/.git" ]; then
cd "$CURDIR"
2016-04-14 09:35:21 -05:00
echo $(git rev-parse HEAD)
fi