Merge pull request #72164 from daviirodrig/fix-ssh
Fix split allow empty string in SSH export plugin
This commit is contained in:
commit
37afc7f077
|
@ -378,8 +378,8 @@ Error EditorExportPlatformLinuxBSD::run(const Ref<EditorExportPreset> &p_preset,
|
|||
if (port.is_empty()) {
|
||||
port = "22";
|
||||
}
|
||||
Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ");
|
||||
Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ");
|
||||
Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ", false);
|
||||
Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ", false);
|
||||
|
||||
const String basepath = dest.path_join("tmp_linuxbsd_export");
|
||||
|
||||
|
|
|
@ -2016,8 +2016,8 @@ Error EditorExportPlatformMacOS::run(const Ref<EditorExportPreset> &p_preset, in
|
|||
if (port.is_empty()) {
|
||||
port = "22";
|
||||
}
|
||||
Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ");
|
||||
Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ");
|
||||
Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ", false);
|
||||
Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ", false);
|
||||
|
||||
const String basepath = dest.path_join("tmp_macos_export");
|
||||
|
||||
|
|
|
@ -831,8 +831,8 @@ Error EditorExportPlatformWindows::run(const Ref<EditorExportPreset> &p_preset,
|
|||
if (port.is_empty()) {
|
||||
port = "22";
|
||||
}
|
||||
Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ");
|
||||
Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ");
|
||||
Vector<String> extra_args_ssh = p_preset->get("ssh_remote_deploy/extra_args_ssh").operator String().split(" ", false);
|
||||
Vector<String> extra_args_scp = p_preset->get("ssh_remote_deploy/extra_args_scp").operator String().split(" ", false);
|
||||
|
||||
const String basepath = dest.path_join("tmp_windows_export");
|
||||
|
||||
|
|
Loading…
Reference in New Issue