spectrwm/buildver.sh
2016-04-14 09:35:21 -05:00

7 lines
108 B
Bash

#!/bin/sh
CURDIR=$(dirname $0)
if [ -d "$CURDIR/.git" ]; then
cd "$CURDIR"
echo $(git rev-parse HEAD)
fi