Skip to content

Commit 3d841d1

Browse files
committed
runcommand - check for old joy2key.py to upgrade to new module before updating runcommand
runcommand.sh install_bin will remove it, so the check needs to be done first. users that have already updated will have to manually install joy2key though
1 parent 01f7980 commit 3d841d1

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

scriptmodules/supplementary/runcommand.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ rp_module_section="core"
1515
rp_module_flags="nonet"
1616

1717
function _update_hook_runcommand() {
18-
# make sure runcommand is always updated when updating retropie-setup
19-
rp_isInstalled "$md_id" && install_bin_runcommand
20-
[[ -f "$md_inst/joy2key.py" ]] && rp_callModule "joy2key"
18+
# make sure runcommand is always updated when updating retropie-setup and
19+
# install joy2key module when updating if the old joy2key is in place
20+
if rp_isInstalled "$md_id"; then
21+
[[ -f "$md_inst/joy2key.py" ]] && rp_callModule "joy2key"
22+
install_bin_runcommand
23+
fi
2124
}
2225

2326
function depends_runcommand() {

0 commit comments

Comments
 (0)