diff --git a/scripts/Common/Config/Fonts/NerdFont/install.sh b/scripts/Common/Config/Fonts/NerdFont/install.sh index 9b9fbb6a..7093b19e 100755 --- a/scripts/Common/Config/Fonts/NerdFont/install.sh +++ b/scripts/Common/Config/Fonts/NerdFont/install.sh @@ -4,7 +4,7 @@ NEXTCLOUD_DIR="${NEXTCLOUD_DIR}"; # Elevate script if [ ! "$UID" -eq 0 ] then - NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" sudo bash "$BASH_SOURCE" "$USER"; + sudo NEXTCLOUD_DIR="${NEXTCLOUD_DIR}" bash "$BASH_SOURCE" "$USER"; else homeDir="$(sudo -u "$1" bash -c 'realpath ~')"; fontFileBaseName="Caskaydia Cove Regular Nerd Font Complete.otf";