Remove 'function' keyword from '_warn_deprecated_winver' for compatibility with standard shell

Causes an error when I execute a shell with 'dash'; removing it seems to restore expected behavior (unable to test the actual condition)
This commit is contained in:
ah64316 2022-02-23 14:50:45 -06:00 committed by GitHub
parent 64ff5a3c77
commit a14269ea72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ if [ ! "${MINGW_PREFIX}" = "" ]; then
fi
# Warn the user on the first login shell in case we detect a too old Windows version
function _warn_deprecated_winver()
_warn_deprecated_winver()
{
if [ "$__MSYS2_WINDOWS_VERSION_WARNING_DONE" = "true" ]; then
return;