Skip to content

Commit 20d25f0

Browse files
bgm123 - minor cleanup
1 parent a4013ba commit 20d25f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scriptmodules/supplementary/bgm123.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function _get_vars_bgm123() {
2727
[init]="$md_inst/bgm_start.sh"
2828
[killscript]="$md_inst/bgm_stop.sh"
2929
[fadescript]="$md_inst/bgm_fade.sh"
30+
[share]="$datadir/bgm"
3031
)
3132

3233
local var
@@ -64,9 +65,6 @@ function install_bin_bgm123() {
6465
function configure_bgm123() {
6566
$(_get_vars_bgm123)
6667

67-
local share="$datadir/bgm"
68-
local file
69-
7068
# find gamelist
7169
local gamelist="$menudir/gamelist.xml"
7270
[[ -f "$gamelist" ]] || gamelist="$configdir/all/emulationstation/gamelists/retropie/gamelist.xml"
@@ -85,6 +83,7 @@ function configure_bgm123() {
8583
fi
8684

8785
# preserve original file versions
86+
local file
8887
for file in "$autostart" "$bashrc" "$onstart" "$onend"; do
8988
if [[ -f "$file" && ! -f "$file.old.$md_id" ]]; then
9089
cp -v "$file" "$file.old.$md_id"

0 commit comments

Comments
 (0)