font-spac3r!

This commit is contained in:
|| Prof. - Xadk3!#0000 || @naryal2580 2023-05-08 08:41:36 +05:30
parent 15724ac756
commit 8ba102a75c

24
font_install.sh Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/bash
if [ -n "$1" ]; then
echo "$0 [PATH.to.FONT.zip]"
fi
if [ $UID != 0 ]; then
echo "[-] UserSpace install not available here."
exit 1
fi
RDIR=".$RANDOM.$RANDOM.$RANDOM.$RANDOM"
TDIR="/tmp/.fIns/$RDIR"
mkdir -p "$TDIR" && cd $TDIR
echo -n "Enter font name to be used as dir. ? "
read -r fdname
mkdir $fdname && cd $fdname && unzip $1 && cd ->/dev/null
mv $fdname "/usr/local/share/fonts/$fdname"
echo "[~] Wait, Caching fonts .."
fc-cache
rm -rf "$TDIR"
echo "[+] $1 installed asin within/like $fdname DIR ?"