32 lines
726 B
Bash
Executable File
32 lines
726 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
|
|
[nN][oO] | [nN])
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "The program will continue..."
|
|
;;
|
|
esac
|
|
|
|
cd ./inks-scripts
|
|
|
|
sudo cp scripts/* /usr/local/bin
|
|
|
|
exit 0
|