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

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

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