From 7a86dad21b1d50b35857496c165e4e85cc0d2bd3 Mon Sep 17 00:00:00 2001 From: Mathias Gumz Date: Sun, 28 Feb 2010 20:16:46 +0100 Subject: bugfix: do not create the temporary menufile 'somewhere' in the filesystem but next to the final one --- util/fluxbox-generate_menu.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in index 7fb5ef7..ee36457 100755 --- a/util/fluxbox-generate_menu.in +++ b/util/fluxbox-generate_menu.in @@ -1898,8 +1898,8 @@ fi # escapes any parentheses in menu label # e.g., "[exec] (konqueror (web))" becomes "[exec] (konqueror (web\))" -sed 's/(\(.*\)(\(.*\)))/(\1 (\2\\))/' $MENUFILENAME > menu.tmp -mv -f menu.tmp $MENUFILENAME +sed 's/(\(.*\)(\(.*\)))/(\1 (\2\\))/' $MENUFILENAME > $MENUFILENAME.tmp +mv -f $MENUFILENAME.tmp $MENUFILENAME if [ -z "$INSTALL" ]; then if [ -z "$CHECKINIT" ]; then -- cgit v0.11.2