diff options
author | Daniel Heath <daniel@heath.cc> | 2019-11-30 20:25:16 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-30 20:25:16 +1100 |
commit | 10a18290773f3152f018ef9ecc3f7ae4544d7367 (patch) | |
tree | 8ec67097835a4e564b565780fd37b05cbd5d70af /src/SMAPI.Installer | |
parent | b1400bcb684c43790dd38628b6c131e9e7c4d400 (diff) | |
download | SMAPI-10a18290773f3152f018ef9ecc3f7ae4544d7367.tar.gz SMAPI-10a18290773f3152f018ef9ecc3f7ae4544d7367.tar.bz2 SMAPI-10a18290773f3152f018ef9ecc3f7ae4544d7367.zip |
Prevent linux install failing with cryptic error
This avoids the error described at https://stackoverflow.com/questions/49242075/mono-bug-magic-number-is-wrong-542
System.TypeInitializationException: The type initializer for 'System.Console' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.ConsoleDriver' threw an exception. ---> System.Exception: Magic number is wrong: 542
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r-- | src/SMAPI.Installer/unix-install.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI.Installer/unix-install.sh b/src/SMAPI.Installer/unix-install.sh index e3a5d8cc..6d0c86ce 100644 --- a/src/SMAPI.Installer/unix-install.sh +++ b/src/SMAPI.Installer/unix-install.sh @@ -12,6 +12,9 @@ elif type type >/dev/null 2>&1; then COMMAND="type" fi +# if $TERM is not set to xterm, mono will bail out when attempting to write to the console. +export TERM=xterm + # validate Mono & run installer if $COMMAND mono >/dev/null 2>&1; then mono internal/unix-install.exe |