From 8eb7f03e7fe8f561f4e81f966bd61656c85dc9b0 Mon Sep 17 00:00:00 2001 From: Greenpete Date: Mon, 9 Jan 2023 16:56:53 +0000 Subject: [PATCH] Fixes to install.sh --- install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index e1f5335..3f121fb 100755 --- a/install.sh +++ b/install.sh @@ -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