diff options
Diffstat (limited to 'arch-friendly-installer.patch')
-rw-r--r-- | arch-friendly-installer.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/arch-friendly-installer.patch b/arch-friendly-installer.patch deleted file mode 100644 index 4a73a9617970..000000000000 --- a/arch-friendly-installer.patch +++ /dev/null @@ -1,48 +0,0 @@ -@@ -246,7 +246,7 @@ - else - # Linux - if [[ "system" == "$installpath" ]]; then -- font_dir="/usr/local/share/fonts" -+ font_dir="${pkgdir}/usr/share/fonts" - else - font_dir="$HOME/.local/share/fonts" - fi -@@ -275,8 +275,17 @@ - [ "$quiet" = true ] && mkdir -p "$font_dir" - case $mode in - copy) -- [ "$quiet" = false ] && cp -fv "${files[@]}" "$font_dir" -- [ "$quiet" = true ] && cp -f "${files[@]}" "$font_dir" -+ for font in "${files[@]}"; do -+ if [[ -f "${font_dir}/${font}" ]]; then -+ continue -+ else -+ if [[ "${quiet}" == true ]]; then -+ cp "${font}" "${font_dir}" -+ else -+ cp "${font}" "${font_dir}" -+ fi -+ fi -+ done - ;; - link) - [ "$quiet" = false ] && ln -sfv "${files[@]}" "$font_dir" -@@ -285,18 +294,3 @@ - esac;; - - esac -- --# Reset font cache on Linux --if [[ -n $(which fc-cache) ]]; then -- [ "$quiet" = false ] && fc-cache -vf "$font_dir" -- [ "$quiet" = true ] && fc-cache -f "$font_dir" -- case $? in -- [0-1]) -- # Catch fc-cache returning 1 on a success -- exit 0 -- ;; -- *) -- exit $? -- ;; -- esac --fi |