home/tui/font/install.sh
2024-01-21 12:09:37 +01:00

13 lines
326 B
Bash
Executable file

#!/bin/sh
file="atlas.tar.xz"
install_dir="/home/$USER/.local/share/fonts"
sha512sum="ac0368043dda174fa97e90d2be8b5f4886dcccd53f3999f14e93e2f1662b62d2"
if [ $(sha256sum $file | awk '{ print $1 }') != "$sha512sum" ]; then
echo "$file is corrupted" && exit
fi
mkdir -p $install_dir
tar -xf $file --directory $install_dir