summarylogtreecommitdiffstats
path: root/40-fontconfig-config.script
blob: 132f0f9f9daa883bd809500f73c2c59fe68df64e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

while read -r f; do
  link="${1:?}/${f##*/}"
  if [[ -e $f && ! -e $link ]]; then
    ln -sT "/$f" "$link"
  elif [[ ! -e $f && -L $link ]]; then
    rm -f "$link"
  fi
done

# vim:set sw=2 et: