From cdcdac085bf695f46489371765d324f5dc2eda2c Mon Sep 17 00:00:00 2001 From: Jools Wills Date: Sun, 17 Nov 2019 00:18:19 +0000 Subject: [PATCH] solaris / emulationstation / moonlight - use $md_mode instead of $mode * $mode works, as parent function uses the var, but it should be $md_mode --- scriptmodules/ports/solarus.sh | 2 +- scriptmodules/supplementary/emulationstation.sh | 2 +- scriptmodules/supplementary/moonlight.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scriptmodules/ports/solarus.sh b/scriptmodules/ports/solarus.sh index 7498785383..29ef590e02 100644 --- a/scriptmodules/ports/solarus.sh +++ b/scriptmodules/ports/solarus.sh @@ -65,7 +65,7 @@ function configure_solarus() { addEmulator 1 "$md_id" "solarus" "$md_inst/solarus.sh %ROM%" addSystem "solarus" moveConfigDir "$home/.solarus" "$configdir/solarus" - [[ "$mode" == "remove" ]] && return + [[ "$md_mode" == "remove" ]] && return # ensure rom dir exists mkRomDir "solarus" diff --git a/scriptmodules/supplementary/emulationstation.sh b/scriptmodules/supplementary/emulationstation.sh index d6b9eb8586..b57171b85a 100644 --- a/scriptmodules/supplementary/emulationstation.sh +++ b/scriptmodules/supplementary/emulationstation.sh @@ -268,7 +268,7 @@ function configure_emulationstation() { # move the $home/emulationstation configuration dir and symlink it moveConfigDir "$home/.emulationstation" "$configdir/all/emulationstation" - [[ "$mode" == "remove" ]] && return + [[ "$md_mode" == "remove" ]] && return # remove other emulation station if it's installed, so we don't end up with # both packages interfering - but leave configs alone so switching is easy diff --git a/scriptmodules/supplementary/moonlight.sh b/scriptmodules/supplementary/moonlight.sh index aa0f65c9ce..6b94cffe61 100644 --- a/scriptmodules/supplementary/moonlight.sh +++ b/scriptmodules/supplementary/moonlight.sh @@ -102,7 +102,7 @@ function install_moonlight() { function configure_moonlight() { addEmulator 1 "$md_id" "steam" "$md_inst/moonlight.sh stream -config %ROM%" addSystem "steam" "Steam Game Streaming" ".ml" - [[ "$mode" == "remove" ]] && return + [[ "$md_mode" == "remove" ]] && return # ensure rom dir mkRomDir "steam"