Skip to content

Commit

Permalink
Update kiri
Browse files Browse the repository at this point in the history
On my WSL2 installation, `/proc/version` prints out `Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) leoheck#1 SMP Wed Oct 28 23:40:43 UTC 2020`, so i made grep case-insensitive, to be able to correctly identify my machine being a WSL machine
  • Loading branch information
marcovannoord committed Dec 21, 2021
1 parent 5971761 commit fc3b641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/kiri
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ if [[ ${ARCHIVE} == 1 ]]; then
fi

if [[ "${LAUNCH_BROWSER}" != 0 ]]; then
if grep -q "Microsoft" "/proc/version" &> /dev/null; then
if grep -i -q "Microsoft" "/proc/version" &> /dev/null; then
# Webserver alternative for Windows with WSL
host=127.0.0.1
if [[ "${WEBSERVER_PORT}" == "" ]]; then
Expand Down

0 comments on commit fc3b641

Please sign in to comment.