summaryrefslogtreecommitdiff
path: root/.local/bin/in-git-repo
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/in-git-repo')
-rwxr-xr-x.local/bin/in-git-repo2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/in-git-repo b/.local/bin/in-git-repo
index 56e2e33..0372e32 100755
--- a/.local/bin/in-git-repo
+++ b/.local/bin/in-git-repo
@@ -2,7 +2,7 @@
res=$(git rev-parse --is-inside-work-tree 2>/dev/null)
-if [[ $res == true ]]; then
+if [ "$res" = true ]; then
exit 0
else
exit 1