diff --git a/tools/move-roms.sh b/tools/move-roms.sh index 77a835c8..c23e3315 100644 --- a/tools/move-roms.sh +++ b/tools/move-roms.sh @@ -18,8 +18,12 @@ then # found external folder and not the internal new_roms_path=~/retrodeck fi -mkdir -p $new_roms_path -mv -f $roms_path/roms $new_roms_path/roms -rm -f /var/config/emulationstation/ROMs -ln -s $new_roms_path/roms /var/config/emulationstation/ROMs -rm -f $roms_path/roms +kdialog --title "RetroDECK" --warningyesno "Should I move the roms from\n\n$roms_path/roms\n\nto\n\n$new_roms_path/roms?" +if [ $? == 0 ] #yes +then + mkdir -p $new_roms_path + mv -f $roms_path/roms $new_roms_path/roms + rm -f /var/config/emulationstation/ROMs + ln -s $new_roms_path/roms /var/config/emulationstation/ROMs + rm -f $roms_path/roms +fi diff --git a/tools/start-retroarch.sh b/tools/start-retroarch.sh index 621a1b24..c485313f 100644 --- a/tools/start-retroarch.sh +++ b/tools/start-retroarch.sh @@ -1,5 +1,7 @@ #!/bin/bash kdialog --title "RetroDECK" --warningyesno "Doing some changes in the RetroArch configuration may create serious issues, please continue only if you know what you're doing.\n\nDo you want to continue?" -if [ $? == 0 ]; then - retroarch \ No newline at end of file +if [ $? == 0 ] +then + retroarch +fi \ No newline at end of file