Compare commits

..

No commits in common. "master" and "1.1" have entirely different histories.
master ... 1.1

3 changed files with 8 additions and 11 deletions

9
GFontInstaller.sh Executable file → Normal file
View File

@ -1,5 +1,5 @@
#!/bin/bash
SCRIPTLOC="https://gitlab.tfmm.co/tfmm/GFontInstallerMac/-/raw/master/fontupdater.sh"
SCRIPTLOC=$FIXME
#Check for root
if [[ $EUID -ne "0" ]]
@ -20,15 +20,12 @@ do
case $opt in
"Daily (Not Recommended)")
updatefreq=daily
break
;;
"Weekly")
updatefreq=weekly
break
;;
"Monthly")
updatefreq=monthly
break
;;
"Quit")
break
@ -40,7 +37,7 @@ done
#Setup directory in /opt and fetch script
mkdir -p /opt/gfontinstallermac
wget -O /opt/gfontinstallermac/fontupdater.sh $SCRIPTLOC
wget -o $SCRIPTLOC /opt/gfontinstallermac/fontupdater.sh
chmod +x /opt/gfontinstallermac/fontupdater.sh
@ -57,7 +54,7 @@ popd
#Setup auto-update
mkdir -p /usr/local/etc/periodic/$updatefreq
ln -sf /opt/gfontinstallermac/fontupdater.sh /usr/local/etc/periodic/$updatefreq/fontupdater
ln -sf /usr/local/etc/periodic/$updatefreq/fontupdater /opt/gfontinstallermac/fontupdater.sh
#Finished
echo "Google Fonts installed in /Users/$username/Library/Fonts and set to update $updatefreq."

View File

@ -3,7 +3,7 @@
Google Font installer and updater for Mac. Tested on Big Sur. Requires git and wget to be installed.
## Installation
* Download the latest `GFontInstaller.sh` script.
* Download the latest `GFontInstaller.sh` script from the [releases page](https://gogs.tfmm.co/tfmm/GFontInstallerMac/releases)
* Run script as root: `sudo GFontInstaller.sh`
* Follow Prompts

View File

@ -1,7 +1,7 @@
#!/bin/bash
#Source config file
. /opt/gfontinstallermac/config
. ${PWD}/config
#Move to font directory
cd /Users/$USER/Library/Fonts/google-fonts