It was the reads

This commit is contained in:
2026-02-28 17:55:43 -06:00
parent daf85509ea
commit 78b5b9d720

View File

@@ -13,11 +13,15 @@ tar -xvf savesync.tar.gz >/dev/null
printf "done\n" printf "done\n"
rm savesync.tar.gz rm savesync.tar.gz
cd recalbox-savesync || exit 1 cd recalbox-savesync {
printf "Could not cd to ./recalbox-savesync Exiting\n"
exit 1
}
while true while true
do do
read -rp "What's your rclone prefix? : " prefix read -r -p "What's your rclone prefix? : " prefix
read -rp "Is $prefix okay? [y/N]: " ans read -r -p "Is $prefix okay? [y/N]: " ans
if [[ "$ans" =~ ^[yY][eE]?[sS]?$ ]]; then break; fi if [[ "$ans" =~ ^[yY][eE]?[sS]?$ ]]; then break; fi
done done
@@ -32,7 +36,10 @@ mkdir -p /recalbox/share/userscripts/manual
cp "locksync.ash" /recalbox/share/userscripts/manual/ cp "locksync.ash" /recalbox/share/userscripts/manual/
printf "done\n" printf "done\n"
printf "Cleaning up..." printf "Cleaning up..."
cd .. || exit 1 cd .. {
printf "Could not cd to .. Exiting\n"
exit 1
}
rm -rf recalbox-savesync rm -rf recalbox-savesync
printf "done\n" printf "done\n"