Diff of /mcore-src/trunk/mcore-tools/src/modules/fluxbox/fluxbox.control.class.in
Parent Directory | Revision Log | Patch
revision 2540 by niro, Wed Sep 16 09:20:51 2015 UTC | revision 2541 by niro, Wed Sep 16 10:28:47 2015 UTC | |
---|---|---|
# | Line 17 set_fluxbox_menuitem() | Line 17 set_fluxbox_menuitem() |
17 | local id | local id |
18 | ||
19 | case "${action}" in | case "${action}" in |
20 | add) id=$(mysqldo "select id from cfg_fluxbox_menuitem where serial='${serial}' and name='${name}';") | add) |
21 | id=$(mysqldo "select id from cfg_fluxbox_menuitem where serial='${serial}' and name='${name}';") | |
22 | if [[ -n ${id} ]] | if [[ -n ${id} ]] |
23 | then | then |
24 | mysqldo "update cfg_fluxbox_menuitem set name='${name}', exec='${exec}', workdir='${workdir}', icon='${icon}' where id=${id};" | mysqldo "update cfg_fluxbox_menuitem set name='${name}', exec='${exec}', workdir='${workdir}', icon='${icon}' where id=${id};" |
|