hw/scripts/common.sh; $OS might not be set when windows_detect() executes.
@@ -35,7 +35,7 @@ common_file_to_load () {
#
windows_detect() {
WINDOWS=0
- if [ $OS = "Windows_NT" ]; then
+ if [ "$OS" = "Windows_NT" ]; then
WINDOWS=1
fi
if [ $WINDOWS -eq 1 -a -z "$COMSPEC" ]; then
