mirror of
https://github.com/vale981/spectrwm
synced 2025-03-04 09:21:39 -05:00
7 lines
108 B
Bash
7 lines
108 B
Bash
#!/bin/sh
|
|
|
|
CURDIR=$(dirname $0)
|
|
if [ -d "$CURDIR/.git" ]; then
|
|
cd "$CURDIR"
|
|
echo $(git rev-parse HEAD)
|
|
fi
|