aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-09-11 23:59:13 (GMT)
committerfluxgen <fluxgen>2004-09-11 23:59:13 (GMT)
commit21877355529d6ad1dfd9a21a122e185bf0030803 (patch)
treeb52b33b2ffe4db647a08e2c2639429dfaddec7dd /util
parent9f95dbcdd10148cea63e567d10f8f4182f01c4b9 (diff)
downloadfluxbox_paul-21877355529d6ad1dfd9a21a122e185bf0030803.zip
fluxbox_paul-21877355529d6ad1dfd9a21a122e185bf0030803.tar.bz2
dont backup the menu unless we actually have one
Diffstat (limited to 'util')
-rwxr-xr-xutil/fluxbox-generate_menu.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/fluxbox-generate_menu.in b/util/fluxbox-generate_menu.in
index ae9f34a..5c0fe8c 100755
--- a/util/fluxbox-generate_menu.in
+++ b/util/fluxbox-generate_menu.in
@@ -22,7 +22,7 @@
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23# DEALINGS IN THE SOFTWARE. 23# DEALINGS IN THE SOFTWARE.
24# 24#
25# $Id: fluxbox-generate_menu.in,v 1.29 2004/09/09 15:25:26 rathnor Exp $ 25# $Id: fluxbox-generate_menu.in,v 1.30 2004/09/11 23:59:13 fluxgen Exp $
26 26
27# 27#
28# Portability notes: 28# Portability notes:
@@ -924,7 +924,9 @@ if [ -w "${MENUFILENAME}" ]; then
924 if [ -f ${MENUFILENAME}.firstbak ]; then 924 if [ -f ${MENUFILENAME}.firstbak ]; then
925 cp ${MENUFILENAME} ${MENUFILENAME}.firstbak 925 cp ${MENUFILENAME} ${MENUFILENAME}.firstbak
926 fi 926 fi
927 mv ${MENUFILENAME} ${MENUFILENAME}.bak 927 if [ -s "${MENUFILE}" ]; then
928 mv ${MENUFILE} ${MENUFILE}.bak
929 fi
928fi 930fi
929 931
930# prefix 932# prefix