Some gotchas
This commit is contained in:
14
install.sh
14
install.sh
@@ -18,12 +18,12 @@ cd recalbox-savesync || {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
while true
|
read -p "What's your rclone prefix? : " prefix
|
||||||
do
|
read -p "Is $prefix okay? [y/N]: " ans
|
||||||
read -r -p "What's your rclone prefix? : " prefix
|
if [[ ! "$ans" =~ ^[yY][eE]?[sS]?$ ]]; then
|
||||||
read -r -p "Is $prefix okay? [y/N]: " ans
|
printf "Got a negative answer. Exiting\n"
|
||||||
if [[ "$ans" =~ ^[yY][eE]?[sS]?$ ]]; then break; fi
|
exit 1;
|
||||||
done
|
fi
|
||||||
|
|
||||||
touch /tmp/savesync
|
touch /tmp/savesync
|
||||||
printf "s|RCLONE_PREFIX|%s|\n" "$prefix" >/tmp/savesync
|
printf "s|RCLONE_PREFIX|%s|\n" "$prefix" >/tmp/savesync
|
||||||
@@ -36,7 +36,7 @@ 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 .. {
|
cd .. || {
|
||||||
printf "Could not cd to .. Exiting\n"
|
printf "Could not cd to .. Exiting\n"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user