Skip to content

Commit 7e0ede1

Browse files
committed
change unportable echo in the linux/macos debug launcher script
`-n` and `-e` are not guaranteed to be supported by posix `echo`
1 parent 2303ce8 commit 7e0ede1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform/linuxbsd/export/export_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Error EditorExportPlatformLinuxBSD::_export_debug_script(const Ref<EditorExportP
5050
}
5151

5252
f->store_line("#!/bin/sh");
53-
f->store_line("echo -ne '\\033c\\033]0;" + p_app_name + "\\a'");
53+
f->store_line("printf '\\033c\\033]0;%s\\a' " + p_app_name);
5454
f->store_line("base_path=\"$(dirname \"$(realpath \"$0\")\")\"");
5555
f->store_line("\"$base_path/" + p_pkg_name + "\" \"$@\"");
5656

platform/macos/export/export_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1500,7 +1500,7 @@ Error EditorExportPlatformMacOS::_export_debug_script(const Ref<EditorExportPres
15001500
}
15011501

15021502
f->store_line("#!/bin/sh");
1503-
f->store_line("echo -ne '\\033c\\033]0;" + p_app_name + "\\a'");
1503+
f->store_line("printf '\\033c\\033]0;%s\\a' " + p_app_name);
15041504
f->store_line("");
15051505
f->store_line("function app_realpath() {");
15061506
f->store_line(" SOURCE=$1");

0 commit comments

Comments
 (0)