Delete the geany_run_script.sh immediately after execution to prevent leaking old copies when the script was quit unexpectedly (closes #2710482, patch by Martin Olsson, thanks).
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3651 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
c7a62c6b3d
commit
a9bf063c7b
@ -1,3 +1,11 @@
|
|||||||
|
2009-03-25 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
|
||||||
|
|
||||||
|
* src/build.c:
|
||||||
|
Delete the geany_run_script.sh immediately after execution
|
||||||
|
to prevent leaking old copies when the script was quit unexpectedly
|
||||||
|
(closes #2710482, patch by Martin Olsson, thanks).
|
||||||
|
|
||||||
|
|
||||||
2009-03-24 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
|
2009-03-24 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
|
||||||
|
|
||||||
* plugins/htmlchars.c:
|
* plugins/htmlchars.c:
|
||||||
|
@ -949,8 +949,8 @@ static gboolean build_create_shellscript(const gchar *fname, const gchar *cmd, g
|
|||||||
str = g_strdup_printf("%s\n\n%s\ndel %s\n", cmd, (autoclose) ? "" : "pause", fname);
|
str = g_strdup_printf("%s\n\n%s\ndel %s\n", cmd, (autoclose) ? "" : "pause", fname);
|
||||||
#else
|
#else
|
||||||
str = g_strdup_printf(
|
str = g_strdup_printf(
|
||||||
"#!/bin/sh\n\n%s\n\necho \"\n\n------------------\n(program exited with code: $?)\" \
|
"#!/bin/sh\n\nrm $0\n\n%s\n\necho \"\n\n------------------\n(program exited with code: $?)\" \
|
||||||
\n\n%s\nrm $0\n", cmd, (autoclose) ? "" :
|
\n\n%s\n", cmd, (autoclose) ? "" :
|
||||||
"\necho \"Press return to continue\"\n#to be more compatible with shells like dash\ndummy_var=\"\"\nread dummy_var");
|
"\necho \"Press return to continue\"\n#to be more compatible with shells like dash\ndummy_var=\"\"\nread dummy_var");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user