Fix installation and updater setup
This commit is contained in:
parent
680b053267
commit
973abf5c8c
7
GFontInstaller.sh
Normal file → Executable file
7
GFontInstaller.sh
Normal file → Executable file
@ -20,12 +20,15 @@ do
|
|||||||
case $opt in
|
case $opt in
|
||||||
"Daily (Not Recommended)")
|
"Daily (Not Recommended)")
|
||||||
updatefreq=daily
|
updatefreq=daily
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
"Weekly")
|
"Weekly")
|
||||||
updatefreq=weekly
|
updatefreq=weekly
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
"Monthly")
|
"Monthly")
|
||||||
updatefreq=monthly
|
updatefreq=monthly
|
||||||
|
break
|
||||||
;;
|
;;
|
||||||
"Quit")
|
"Quit")
|
||||||
break
|
break
|
||||||
@ -54,7 +57,7 @@ popd
|
|||||||
|
|
||||||
#Setup auto-update
|
#Setup auto-update
|
||||||
mkdir -p /usr/local/etc/periodic/$updatefreq
|
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
|
#Finished
|
||||||
echo "Google Fonts installed in /Users/$username/Library/Fonts and set to update $updatefreq."
|
echo "Google Fonts installed in /Users/$username/Library/Fonts and set to update $updatefreq."
|
||||||
|
Loading…
Reference in New Issue
Block a user