Skip to content

Commit bee98fd

Browse files
BYKchadwhitacre
andauthored
fix(install): Disable the script on git-bash (#741)
We kept getting issue reports that we traced down to `git-bash` which doesn't seem to play nice with Docker for Windows with bind mounts. This PR uses the existence of `$MSYSTEM` to detect `git-bash` and exit early with a relevant message. Co-authored-by: Chad Whitacre <[email protected]>
1 parent a717c11 commit bee98fd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
#!/usr/bin/env bash
22
set -e
33

4+
if [[ -n "$MSYSTEM" ]]; then
5+
echo "Seems like you are using an MSYS2-based system (such as Git Bash) which is not supported. Please use WSL instead.";
6+
exit 1
7+
fi
8+
49
# Read .env for default values with a tip o' the hat to https://stackoverflow.com/a/59831605/90297
510
t=$(mktemp) && export -p > "$t" && set -a && . ./.env && set +a && . "$t" && rm "$t" && unset t
611

0 commit comments

Comments
 (0)