Set up China before moving the mirrors so a failed switch leaves the machine Global
This commit is contained in:
1 parent
09da70c303
commit
a3e40cb8b0
4 files changed
+28
-6
No files matched your search
@@ -16,18 +16,22 @@ global)
|
||||
done
|
||||
;;
|
||||
china)
|
||||
mkdir -p /etc/omarchy
|
||||
echo china >/etc/omarchy/region
|
||||
# Packages first, so a failed install leaves the machine Global.
|
||||
omarchy-pkg-add fcitx5-configtool fcitx5-rime librime opencc rime-ice-installer
|
||||
for link in "${china_links[@]}"; do
|
||||
read -r source target <<<"$link"
|
||||
read -r _ target <<<"$link"
|
||||
if [[ -e $target && ! -L $target ]]; then
|
||||
echo "Refusing to replace $target, which Omarchy did not create" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
mkdir -p /etc/omarchy
|
||||
echo china >/etc/omarchy/region
|
||||
for link in "${china_links[@]}"; do
|
||||
read -r source target <<<"$link"
|
||||
mkdir -p "${target%/*}"
|
||||
ln -sfn "$OMARCHY_PATH/default/region/china/$source" "$target"
|
||||
done
|
||||
omarchy-pkg-add fcitx5-configtool fcitx5-rime librime opencc rime-ice-installer
|
||||
sed -i 's/^#\(zh_CN\.UTF-8 UTF-8\)/\1/' /etc/locale.gen
|
||||
locale-gen
|
||||
if grep -q '^LANG=' /etc/locale.conf; then
|
||||
|
||||
Reference in new issue
Block a user