Compare commits

..

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

3 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
SCRIPTLOC="https://gitlab.tfmm.co/tfmm/GFontInstallerMac/-/raw/master/fontupdater.sh"
SCRIPTLOC="https://gogs.tfmm.co/tfmm/GFontInstallerMac/raw/master/fontupdater.sh"
#Check for root
if [[ $EUID -ne "0" ]]
@ -40,7 +40,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

View File

@ -3,11 +3,11 @@
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
## Information
You will be prompted for a frequency at which to update the fonts from the Google Git repository, I would recommend weekly at the most frequent, as daily just seems like a lot.
You will be prompted for which user to install the fonts, at this point in time they can only be installed for one user per machine.
You will be prompted for which user to install the fonts, at this point in time they can only be installed for one user per machine.

View File

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