Add new scripts and install/uninstall

This commit is contained in:
Pim Nelissen
2024-07-15 09:38:57 +02:00
parent b122fe6da4
commit 88205af3a5
10 changed files with 60 additions and 0 deletions

15
install.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/bash
PATH_TO_INSTALL=/home/$(whoami)/.local/bin
FILES=($PWD/scripts/pcs*)
NUM_OF_FILES=${#FILES[@]}
for f in ${FILES[*]}
do
final_path=$PATH_TO_INSTALL/$(basename ${f})
rm $final_path 2> /dev/null
chmod +x $f
ln -s $f $final_path
done
echo $NUM_OF_FILES scripts successfully installed to $PATH_TO_INSTALL.