Skip to content

Instantly share code, notes, and snippets.

@ay65535
Last active July 7, 2020 15:52
Show Gist options
  • Save ay65535/9b1c27695828ddc291da65b4e1723de9 to your computer and use it in GitHub Desktop.
Save ay65535/9b1c27695828ddc291da65b4e1723de9 to your computer and use it in GitHub Desktop.
#!/bin/bash
# https://amd-osx.com/forum/viewtopic.php?t=413
ls -AFG /Volumes/
#VOLUME_NAME='Install OS X El Capitan'
VOLUME_NAME='Image Volume'
DOWNLOAD_PATH="/Volumes/$VOLUME_NAME/Downloads"
FONTS_PATH="/Volumes/$VOLUME_NAME/System/Library/Fonts"
ls -FG "/Volumes/$VOLUME_NAME/"
if [ ! -d "$DOWNLOAD_PATH" ]; then
mkdir "$DOWNLOAD_PATH"
fi
ls -AFG "${FONTS_PATH%Fonts}"
if [ ! -d "$FONTS_PATH" ]; then
mkdir -p "$FONTS_PATH"
fi
cd "$DOWNLOAD_PATH"
curl -O https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip
#open -a Safari https://noto-website-2.storage.googleapis.com/pkgs/Noto-unhinted.zip
unzip -u -d "$FONTS_PATH" "${DOWNLOAD_PATH}/Noto-unhinted.zip" '*.otf' '*.ttf' '*.ttc'
ls -AFG "$FONTS_PATH"
#cd "$FONTS_PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment