Fixes to install.sh

This commit is contained in:
Peter Green 2023-01-09 16:56:53 +00:00
parent 8cee0da0e3
commit 8eb7f03e7f
1 changed files with 5 additions and 2 deletions

View File

@ -6,10 +6,8 @@ pwd=$(pwd)
# Find out what the src and dest are...
echo "Please enter your source path"
read -r src
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
# Check for the 'bin' dir in the users 'Home' directory and create it if not present...
if [ -d "$HOME"/bin ];
@ -28,6 +26,11 @@ cp "$pwd"/README.md "$HOME"/bin/backup_home
cp "$pwd"/uninstall.sh "$HOME"/bin/backup_home
cp "$pwd"/Backup.desktop "$HOME"/.local/share/applications
# Set source and set in Backup.sh
sed -i "s|source=|source=$src|" "$HOME"/bin/backup_home/Backup.sh
sed -i "s|destination=|destination=$dest|" "$HOME"/bin/backup_home/Backup.sh
# Edit the menu entry file...
sed -i "s|Exec=|Exec=$HOME/bin/backup_home/Backup.sh|" "$HOME"/bin/backup_home/Backup.desktop
sed -i "s|Icon=|Icon=$HOME/bin/backup_home/Backup.svg|" "$HOME"/.local/share/applications/Backup.desktop