37 lines
734 B
Bash
Executable File
37 lines
734 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
#-----------------------------------
|
|
# Name: fonts
|
|
# Version: 1.0.0
|
|
# Author: Solomon Laing
|
|
# Description:
|
|
# Installs the getnf program to the
|
|
# system.
|
|
#-----------------------------------
|
|
|
|
clear
|
|
|
|
if command -v getnf &>/dev/null; then
|
|
echo "getnf is already installed on the system."
|
|
exit 0
|
|
fi
|
|
|
|
echo "This script is going to attempt install getnf. As such it will ask for root privilages."
|
|
|
|
git clone https://github.com/ronniedroid/getnf "$HOME/repos/github.com/ronniedroid/getnf"
|
|
cd "$HOME/repos/github.com/ronniedroid/getnf" || exit 1
|
|
|
|
sudo ./install.sh
|
|
|
|
read -r -p "Do you want to choose your fonts now? [Y/n] " input
|
|
case $input in
|
|
[nN][oO] | [nN])
|
|
exit 0
|
|
;;
|
|
*) ;;
|
|
esac
|
|
|
|
getnf
|
|
|
|
exit 0
|