Skip to content

Commit

Permalink
Merge pull request #51 from yorelog/patch-1
Browse files Browse the repository at this point in the history
fix: running with git bash under windows
  • Loading branch information
successren committed Jan 23, 2024
2 parents d461baa + d2ca485 commit 4857daa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,13 @@ echo "GPUID2=${gpu_id2}" >> .env


if [ -e /proc/version ]; then
if grep -qi microsoft /proc/version; then
echo "Running under WSL"
if grep -qi microsoft /proc/version || grep -qi MINGW /proc/version; then
if grep -qi microsoft /proc/version; then
echo "Running under WSL"
else
echo "Running under git bash"
fi

if docker-compose -p user -f docker-compose-windows.yaml down |& tee /dev/tty | grep -q "services.qanything_local.deploy.resources.reservations value 'devices' does not match any of the regexes"; then
echo "检测到 Docker Compose 版本过低,请升级到v2.23.3或更高版本。执行docker-compose -v查看版本。"
fi
Expand Down

0 comments on commit 4857daa

Please sign in to comment.