summaryrefslogtreecommitdiff
path: root/.local/bin/in-git-repo
blob: 56e2e338b0f9729466c93337c3ae928ffe69a6c5 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

res=$(git rev-parse --is-inside-work-tree 2>/dev/null)

if [[ $res == true ]]; then
    exit 0
else 
    exit 1
fi