Added copying of files to home/bin
This commit is contained in:
parent
c60762dfc6
commit
44fb61f094
22
install.sh
22
install.sh
|
@ -7,7 +7,25 @@ pwd=$(pwd)
|
|||
|
||||
echo "Please enter your source path"
|
||||
read -r src
|
||||
sed -i "s|source=|source=/$src|" "$pwd"/Backup.sh
|
||||
sed -i "s|source=|source=$src|" "$pwd"/Backup.sh
|
||||
echo "Please enter your destination path"
|
||||
read -r dest
|
||||
sed -i "s|destination=|destination=/$dest|" "$pwd"/Backup.sh
|
||||
sed -i "s|destination=|destination=$dest|" "$pwd"/Backup.sh
|
||||
|
||||
# Check for the 'bin' dir in the users 'Home' directory and create it if not present...
|
||||
if [ -d "$HOME"/bin ];
|
||||
then echo "$HOME/bin exists, nothing to do..."
|
||||
else mkdir "$HOME"/bin
|
||||
fi
|
||||
|
||||
# Copy files over to ~/bin
|
||||
|
||||
cp Backup.sh "$HOME"/bin/"$pwd"
|
||||
cp Backup.svg "$HOME"/bin/"$pwd"
|
||||
cp LICENCE "$HOME"/bin/"$pwd"
|
||||
cp README.md "$HOME"/"$pwd"
|
||||
|
||||
# let the user know we have finished...
|
||||
|
||||
echo "All done! Press 'Enter' to close this window..."
|
||||
read -r
|
Loading…
Reference in New Issue