51 lines
907 B
Bash
Executable File
51 lines
907 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#-----------------------------------
|
|
# Name: install-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."
|
|
|
|
read -r -p "Are you sure you want to continue? [Y/n] " input
|
|
case $input in
|
|
[nN][oO] | [nN])
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "The program will continue..."
|
|
;;
|
|
esac
|
|
|
|
cd /tmp
|
|
sudo -S git clone https://github.com/ronniedroid/getnf
|
|
sudo -S chown -R $USER:users ./getnf
|
|
cd getnf
|
|
|
|
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
|
|
;;
|
|
*)
|
|
echo "The program will continue..."
|
|
;;
|
|
esac
|
|
|
|
getnf
|
|
|
|
exit 0
|