bugfix: do not create the temporary menufile 'somewhere' in the filesystem but next to the final one

This commit is contained in:
Mathias Gumz 2010-02-28 20:16:46 +01:00
parent 254bc96daf
commit 7a86dad21b

View file

@ -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