diff --git a/scripts/Common/Config/Fonts/NerdFont/install.sh b/scripts/Common/Config/Fonts/NerdFont/install.sh index 7093b19e..2e1ad457 100755 --- a/scripts/Common/Config/Fonts/NerdFont/install.sh +++ b/scripts/Common/Config/Fonts/NerdFont/install.sh @@ -6,7 +6,7 @@ if [ ! "$UID" -eq 0 ] then sudo NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" bash "$BASH_SOURCE" "$USER"; else - homeDir="$(sudo -u "$1" bash -c 'realpath ~')"; + homeDir="$(realpath ~$1)"; fontFileBaseName="Caskaydia Cove Regular Nerd Font Complete.otf"; tempFile="$(sudo -u "$1" mktemp -d)/$fontFileBaseName"; destination=/usr/share/font/opentype;