Rename var

This commit is contained in:
clsty
2025-10-30 22:09:09 +08:00
parent 1b996e37a7
commit fceda9bd35
4 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -83,10 +83,10 @@ for pattern in "${patterns[@]}"; do
condition=$(echo "$pattern" | yq '.condition // "true"')
# Handle fontconfig fontset override
# If II_FONTSET_NAME is set and this is the fontconfig pattern, use the fontset instead
if [[ "$from" == "dots/.config/fontconfig" ]] && [[ -n "${II_FONTSET_NAME:-}" ]]; then
from="dots-extra/fontsets/${II_FONTSET_NAME}"
echo "Using fontset \"${II_FONTSET_NAME}\" for fontconfig"
# If FONTSET_DIR_NAME is set and this is the fontconfig pattern, use the fontset instead
if [[ "$from" == "dots/.config/fontconfig" ]] && [[ -n "${FONTSET_DIR_NAME:-}" ]]; then
from="dots-extra/fontsets/${FONTSET_DIR_NAME}"
echo "Using fontset \"${FONTSET_DIR_NAME}\" for fontconfig"
fi
# Check if pattern should be processed
+2 -2
View File
@@ -103,9 +103,9 @@ esac
case $SKIP_FONTCONFIG in
true) sleep 0;;
*)
case "$II_FONTSET_NAME" in
case "$FONTSET_DIR_NAME" in
"") warning_rsync_delete; v rsync -av --delete dots/.config/fontconfig/ "$XDG_CONFIG_HOME"/fontconfig/ ;;
*) warning_rsync_delete; v rsync -av --delete dots-extra/fontsets/$II_FONTSET_NAME/ "$XDG_CONFIG_HOME"/fontconfig/ ;;
*) warning_rsync_delete; v rsync -av --delete dots-extra/fontsets/$FONTSET_DIR_NAME/ "$XDG_CONFIG_HOME"/fontconfig/ ;;
esac;;
esac
+1 -1
View File
@@ -57,7 +57,7 @@ patterns:
- from: "dots/.local/share/konsole"
to: "$XDG_DATA_HOME/konsole"
mode: "soft"
# Fontconfig (default - fontsets handled separately if II_FONTSET_NAME is set)
# Fontconfig (default - fontsets handled separately if FONTSET_DIR_NAME is set)
- from: "dots/.config/fontconfig"
to: "$XDG_CONFIG_HOME/fontconfig"
mode: "sync"
+1 -1
View File
@@ -81,7 +81,7 @@ while true ; do
## Ones with parameter
--fontset)
if [[ -d "${REPO_ROOT}/dots-extra/fontsets/$2" ]];
then echo "Using fontset \"$2\".";II_FONTSET_NAME="$2";shift 2
then echo "Using fontset \"$2\".";FONTSET_DIR_NAME="$2";shift 2
else echo "Wrong argument for $1.";exit 1
fi;;