Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
973abf5c8c | |||
680b053267 |
7
GFontInstaller.sh
Normal file → Executable file
7
GFontInstaller.sh
Normal file → Executable file
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
SCRIPTLOC=$FIXME
|
||||
SCRIPTLOC="https://gogs.tfmm.co/tfmm/GFontInstallerMac/raw/master/fontupdater.sh"
|
||||
|
||||
#Check for root
|
||||
if [[ $EUID -ne "0" ]]
|
||||
@ -20,12 +20,15 @@ do
|
||||
case $opt in
|
||||
"Daily (Not Recommended)")
|
||||
updatefreq=daily
|
||||
break
|
||||
;;
|
||||
"Weekly")
|
||||
updatefreq=weekly
|
||||
break
|
||||
;;
|
||||
"Monthly")
|
||||
updatefreq=monthly
|
||||
break
|
||||
;;
|
||||
"Quit")
|
||||
break
|
||||
@ -54,7 +57,7 @@ popd
|
||||
|
||||
#Setup auto-update
|
||||
mkdir -p /usr/local/etc/periodic/$updatefreq
|
||||
ln -sf /usr/local/etc/periodic/$updatefreq/fontupdater /opt/gfontinstallermac/fontupdater.sh
|
||||
ln -sf /opt/gfontinstallermac/fontupdater.sh /usr/local/etc/periodic/$updatefreq/fontupdater
|
||||
|
||||
#Finished
|
||||
echo "Google Fonts installed in /Users/$username/Library/Fonts and set to update $updatefreq."
|
Reference in New Issue
Block a user