From 68b9c32a06d7cebd06bc39b211d1886fbd08dfe7 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 15 Feb 2023 15:15:35 +0900 Subject: [PATCH] fixed permission error --- desktop/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/install b/desktop/install index 02dac0f..4cdb6f4 100755 --- a/desktop/install +++ b/desktop/install @@ -25,7 +25,7 @@ function install_source_han_mono_fonts() { home=$(eval "echo ~${SUDO_USER:-}") fonts_dir="$home/.local/share/fonts" 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" \ curl \ -fsSL https://github.com/adobe-fonts/source-han-mono/releases/download/1.002/SourceHanMono.ttc \