Conversation
Added information about connecting via VNC and updated the mermaid diagram.
| local DEST="$1" | ||
| # Supprime le dossier corrompu (nécessite sudo car rsync préserve les permissions root) | ||
| if [ -d "$DEST" ]; then | ||
| sudo rm -rf "$DEST" |
There was a problem hiding this comment.
This may nuke the whole system for the user, and this is bash. So I have already nightmares in front of my eyes. Let's try to be defensive at least by checking [[ -z $DEST ]] || [[$DEST == "/" ]]; return 1
There was a problem hiding this comment.
This is done by deleting the folder only if its name is “backup” and it is not in the root directory
There was a problem hiding this comment.
where do you exactly check what's the folder is?
There was a problem hiding this comment.
The backup is only deleted if the user cancels the command. There is no validation of the contents of the backup folder in restore-astroarch.sh. The system relies on the .backup_dest file, or if that file does not exist on the user to select the folder from the directory tree in a dialog box. A warning message indicates that the system will be overwritten from the specified folder and asks the user to confirm
Updated image source in README for better clarity.
No description provided.