iosevka-prog-font-builder/build-iosevka-prog-font.sh

18 lines
405 B
Bash
Raw Normal View History

2021-12-13 08:13:23 +00:00
#!/bin/bash
FILE=$( readlink -f "${BASH_SOURCE[0]}" )
DIR=$( dirname ${FILE} )
CONFIG="${DIR}/private-build-plans.toml"
if [ -r "${CONFIG}" ]; then
if command -v docker; then
sudo docker run -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