Skip to content

Commit

Permalink
[utils/common] Fix wrong grep when WSL2 is detected
Browse files Browse the repository at this point in the history
  • Loading branch information
goldyfruit committed Jul 6, 2024
1 parent 01b71d5 commit 8bacbb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ function in_array() {
function wsl2_requirements() {
if [[ "$KERNEL" == *"microsoft"* ]]; then
echo -ne "➤ Validating WSL2 requirements... "
if ! grep -q "systemd=boot" "$WSL_FILE" &>>"$LOG_FILE"; then
echo "systemd=boot must be added to $WSL_FILE" &>>"$LOG_FILE"
if ! grep -q "systemd=true" "$WSL_FILE" &>>"$LOG_FILE"; then
echo "systemd=true must be added to $WSL_FILE" &>>"$LOG_FILE"
return 1
fi
echo -e "[$done_format]"
Expand Down

0 comments on commit 8bacbb9

Please sign in to comment.