Removed "$beta" parameter

This commit is contained in:
Jandalf81
2018-08-02 19:04:45 +02:00
parent b52d09583c
commit 33efc4e801

View File

@@ -15,8 +15,6 @@ url="https://raw.githubusercontent.com/Jandalf81/rclone_script"
branch="master" branch="master"
remotebasedir = "" remotebasedir = ""
beta="$1"
header () header ()
{ {
@@ -257,12 +255,6 @@ installRCLONE_SCRIPT ()
exit exit
} }
# ONLY DO WHEN $beta IS 1
if [ "${beta}" = "1" ]
then
printf "${RED}BEGIN OF BETA${NORMAL}!\n"
# download RCLONE_SCRIPT-FULLSYNC script # download RCLONE_SCRIPT-FULLSYNC script
printf "${NORMAL} Getting RCLONE_SCRIPT-FULLSYNC... " printf "${NORMAL} Getting RCLONE_SCRIPT-FULLSYNC... "
@@ -292,11 +284,8 @@ installRCLONE_SCRIPT ()
sed -i "/<\/gameList>/c\\\\t<game>\n\t\t<path>.\/rclone_script-fullsync.sh<\/path>\n\t\t<name>RCLONE_SCRIPT full sync<\/name>\n\t\t<desc>Starts a synchronization of all save files<\/desc>\n\t\t<image></image>\n\t<\/game>\n<\/gameList>" ~/.emulationstation/gamelists/retropie/gamelist.xml sed -i "/<\/gameList>/c\\\\t<game>\n\t\t<path>.\/rclone_script-fullsync.sh<\/path>\n\t\t<name>RCLONE_SCRIPT full sync<\/name>\n\t\t<desc>Starts a synchronization of all save files<\/desc>\n\t\t<image></image>\n\t<\/game>\n<\/gameList>" ~/.emulationstation/gamelists/retropie/gamelist.xml
printf "${GREEN}Done\n" printf "${GREEN}Done\n"
fi
printf "${RED}END OF BETA${NORMAL}!\n"
fi fi
# END OF BETA
# download uninstall script # download uninstall script
printf "${NORMAL} Getting UNINSTALL script... " printf "${NORMAL} Getting UNINSTALL script... "
@@ -550,14 +539,9 @@ footer ()
printf "If you already have some saves in the ROM directories,\n" printf "If you already have some saves in the ROM directories,\n"
printf "you need to move them there manually!\n" printf "you need to move them there manually!\n"
printf "After moving your saves you should ${RED}reboot ${NORMAL}your RetroPie.\n" printf "After moving your saves you should ${RED}reboot ${NORMAL}your RetroPie.\n"
if [ "${beta}" = "1" ]
then
printf "\n" printf "\n"
printf "Then, you should start a full sync via\n" printf "Then, you should start a full sync via\n"
printf "${YELLOW}RetroPie / RCLONE_SCRIPT FULL SYNC\n" printf "${YELLOW}RetroPie / RCLONE_SCRIPT FULL SYNC\n"
fi
printf "\n" printf "\n"
printf "${NORMAL}Call \"${RED}~/scripts/rclone_script-uninstall.sh${NORMAL}\" to remove\n" printf "${NORMAL}Call \"${RED}~/scripts/rclone_script-uninstall.sh${NORMAL}\" to remove\n"
printf "all or parts of this script\n" printf "all or parts of this script\n"