Trust ArchLinuxCN before the China refresh upgrades through it; repair links before the cn rename
This commit is contained in:
1 parent
9a57690e7d
commit
d62dff95b6
5 files changed
+36
-12
No files matched your search
@@ -2,10 +2,11 @@ echo "Rename the China region to cn and follow its moved profile"
|
||||
|
||||
[[ $(cat /etc/omarchy/region 2>/dev/null) == "china" ]] || exit 0
|
||||
|
||||
echo cn | sudo tee /etc/omarchy/region >/dev/null
|
||||
# Links first, so a failure leaves china for the retry.
|
||||
for link in /etc/environment.d/90-omarchy-china.conf /.cargo/config.toml /etc/gemrc; do
|
||||
old=$(readlink "$link" || true)
|
||||
if [[ $old == */default/region/china/* ]]; then
|
||||
sudo ln -sfn "$OMARCHY_PATH/default/regions/cn/${old##*/}" "$link"
|
||||
fi
|
||||
done
|
||||
echo cn | sudo tee /etc/omarchy/region >/dev/null
|
||||
Reference in new issue
Block a user