Hopefully fixed the sed and while issues

This commit is contained in:
2026-02-28 17:43:00 -06:00
parent cbda17d930
commit 03de26bd60
3 changed files with 4 additions and 4 deletions

View File

@@ -20,14 +20,14 @@ cd recalbox-savesync || {
re="'^[yY][eE]?[sS]?$'"
result="0"
while "$result" -ne 1; do
while [ "$result" -ne 1 ]; do
read -rp "\nWhat's your rclone prefix? : " prefix
read -rp "Is $prefix okay? [y/N]: " ans
result="$(grep -E -c "$re" "$ans")"
done
touch /tmp/savesync
printf "s/<RCLONE_PREFIX>/%s/g\n" "$prefix" >/tmp/savesync
printf "s|RCLONE_PREFIX|%s|\n" "$prefix" >/tmp/savesync
sed -i -e "/tmp/savesync" "savesync[rungame,endgame](sync).ash"
sed -i -e "/tmp/savesync" "locksync.ash"
rm "/tmp/savesync"