Simplify command

This commit is contained in:
Manuel Thalmann 2023-10-13 10:25:07 +02:00
parent 6a41fd454a
commit 5f7b0167d3

View file

@ -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;