1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-02-22 16:05:54 +00:00

fixed permission error

This commit is contained in:
Nebel 2023-02-15 15:15:35 +09:00
parent 53676249e8
commit 68b9c32a06

View file

@ -25,7 +25,7 @@ function install_source_han_mono_fonts() {
home=$(eval "echo ~${SUDO_USER:-}") home=$(eval "echo ~${SUDO_USER:-}")
fonts_dir="$home/.local/share/fonts" fonts_dir="$home/.local/share/fonts"
fontconfig_dir="$home/.config/fontconfig/conf.d" fontconfig_dir="$home/.config/fontconfig/conf.d"
mkdir -p "$fonts_dir" "$fontconfig_dir" sudo --user="#$uid" mkdir -p "$fonts_dir" "$fontconfig_dir"
sudo --user="#$uid" \ sudo --user="#$uid" \
curl \ curl \
-fsSL https://github.com/adobe-fonts/source-han-mono/releases/download/1.002/SourceHanMono.ttc \ -fsSL https://github.com/adobe-fonts/source-han-mono/releases/download/1.002/SourceHanMono.ttc \