Index: tools/restore.sh =================================================================== diff -u -rb89fd9ccb593a203a8f019e670dcfc46fbd439d4 -r361b58c60372d8758dc43b153b92e6f1dd59fa1a --- tools/restore.sh (.../restore.sh) (revision b89fd9ccb593a203a8f019e670dcfc46fbd439d4) +++ tools/restore.sh (.../restore.sh) (revision 361b58c60372d8758dc43b153b92e6f1dd59fa1a) @@ -1,6 +1,8 @@ #!/bin/bash backup_file="paths.ini.BAK0" -dest=/opt/squishqt/etc/paths.ini +install_dir=/opt/squishqt read -p "Enter the paths.ini backup file to restore to: " -e -i "$backup_file" backup_file +read -p "Enter the squishqt installation directory: " -e -i "$install_dir" install_dir +dest="$install_dir/etc/paths.ini" sudo cp $backup_file $dest echo "Restored $backup_file to $dest"