Update setsettings.sh

Corrected the audiolatency test expressions with double square brackets.
This commit is contained in:
Locutus73 2022-11-21 20:42:42 +01:00 committed by GitHub
parent 4312386965
commit 9f60de74eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -496,7 +496,7 @@ fi
## Audiolatency
# Get configuration from system.cfg and set to retroarch.cfg
get_game_setting "audiolatency"
if [ "${EES}" =~ ^[0-9]+$ ] && [ "${EES}" -gt "0" ]; then
if [[ "${EES}" =~ ^[0-9]+$ ]] && [[ "${EES}" -gt "0" ]]; then
echo "audio_latency = \"${EES}\"" >> ${RAAPPENDCONF}
fi