It was the reads
This commit is contained in:
15
install.sh
15
install.sh
@@ -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"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user