#!/bin/bash IOSEVKA_VERSION="17.0.2" FILE=$( readlink -f "${BASH_SOURCE[0]}" ) DIR=$( dirname "${FILE}" ) CONFIG="${DIR}/private-build-plans.toml" if [ -r "${CONFIG}" ]; then if command -v docker >/dev/null 2>&1; then sudo docker run -e FONT_VERSION="${IOSEVKA_VERSION}" -it -v "$(pwd)":/build avivace/iosevka-build -- ttf::iosevka-prog sudo chown -R "$(id -u)":"$(id -g)" "${DIR}/dist" else echo "Docker executable not found" fi else echo "Can't read config file ${CONFIG}" fi