Fix font installation
This commit is contained in:
parent
449014781e
commit
1a5161455e
1 changed files with 6 additions and 1 deletions
|
@ -5,5 +5,10 @@ then
|
|||
sudo bash "$BASH_SOURCE" "$USER"
|
||||
else
|
||||
homeDir=$(sudo -u $1 bash -c 'realpath ~')
|
||||
cp "$homeDir/Nextcloud/Caskaydia Cove Regular Nerd Font Complete.otf" /usr/share/font/opentype
|
||||
fontFileBaseName="Caskaydia Cove Regular Nerd Font Complete.otf"
|
||||
tempFile=$(sudo -u $1 mktemp -d)/$fontFileBaseName
|
||||
destination=/usr/share/font/opentype
|
||||
|
||||
sudo -u $1 cp "$homeDir/Nextcloud/Caskaydia Cove Regular Nerd Font Complete.otf" "$tempFile"
|
||||
cp "$tempFile" /usr/share/fonts/opentype
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue