mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 160 forks source link

Fix minor script error #190

Closed MichaelMai2000 closed 3 years ago

MichaelMai2000 commented 3 years ago

If $(which 7z) is not enclosed in quotes, plus 7z was not installed, then bash will report: install.sh: line 79: [: ==: unary operator expected

MichaelMai2000 commented 3 years ago

The whole error log would be like this:


$ sudo apt remove p7zip-full

$ bash install.sh
install.sh: line 79: [: ==: unary operator expected
downloading wsl-terminal-0.9.2.7z ...done
extracting(this might take a while)...wsl-terminal-0.9.2.7z is broken, try again.
removed 'wsl-terminal-0.9.2.7z'```
MichaelMai2000 commented 3 years ago

41