Skip to content

Commit

Permalink
Merge pull request #2726 from thomasjacquin/Fix-install.sh-bug-when-u…
Browse files Browse the repository at this point in the history
…pdating-settings-file

Fix install.sh bug when updating settings file
  • Loading branch information
EricClaeys authored May 31, 2023
2 parents 6881925 + 245bfea commit 3e84570
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,8 @@ update_locale()
{
local L="${1}" # locale
local S="${2}" # settings file
jq ".locale = \"${L}\"" "${S}" > /tmp/x && mv /tmp/x "${S}"
# Have to use "cp" instead of "mv" to keep the hard link.
jq ".locale = \"${L}\"" "${S}" > /tmp/x && cp /tmp/x "${S}" && rm /tmp/x
}
####
# Set the locale
Expand Down

0 comments on commit 3e84570

Please sign in to comment.