summaryrefslogtreecommitdiff
path: root/.local/bin/in-git-repo
diff options
context:
space:
mode:
authoradam <56338480+adastx@users.noreply.github.com>2022-11-04 21:43:06 +0100
committeradam <56338480+adastx@users.noreply.github.com>2022-11-04 21:43:06 +0100
commit767c0821ee0a1ad893efe9b5bc8e84f5629f8416 (patch)
treeb3b8b619dd99f020f41f54fa1186421901d78fd0 /.local/bin/in-git-repo
parentbb2359c30f8ade19fc7e60ab825d2744d0c04fcf (diff)
scripts: removed bashisms
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