9 lines
247 B
Bash
9 lines
247 B
Bash
#!/bin/bash
|
|
# Elevate script
|
|
if [ ! "$UID" -eq 0 ]
|
|
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
|
|
fi
|