35 lines
792 B
Bash
Executable File
35 lines
792 B
Bash
Executable File
#!/bin/sh
|
|
|
|
#-----------------------------------
|
|
# Name: install-scripts
|
|
# Version: 1.0.0
|
|
# Author: Solomon Laing
|
|
# Description:
|
|
# Installs my scripts inks-scripts on
|
|
# the system by copying them to /usr/local/bin.
|
|
#-----------------------------------
|
|
|
|
clear
|
|
|
|
# check user is happy to run this script
|
|
echo "This script is going to install inks-scripts to the system, which are required for much of the supporting functionality in my dotfiles and WM. As such it will ask for root privilages."
|
|
read -r -p "Are you sure you want to continue? [y/N] " input
|
|
case $input in
|
|
[yY][eE][sS] | [yY])
|
|
echo "The program will continue..."
|
|
;;
|
|
[nN][oO] | [nN])
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Invalid input..."
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
cd ./inks-scripts
|
|
|
|
sudo cp scripts/* /usr/local/bin
|
|
|
|
exit 0
|