From 20358c778172cc8190082bbf713ab14df6af8034 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Fri, 13 Oct 2023 10:25:07 +0200 Subject: [PATCH] Simplify command --- scripts/Common/Config/Fonts/NerdFont/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Common/Config/Fonts/NerdFont/install.sh b/scripts/Common/Config/Fonts/NerdFont/install.sh index 7093b19e1..2e1ad4570 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;