Merge pull request #11 from Aterfax/Correct-faulty-variable-check

Correct faulty variable check.
This commit is contained in:
Aterfax 2025-03-21 20:01:49 +00:00 committed by GitHub
commit 2fc4c03adb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -116,7 +116,7 @@ read -rp "Are these details correct? Press Enter to continue or Ctrl+C to cancel
#proxmox-backup-client restore host/elsa/2019-12-03T09:35:01Z root.pxar /target/path/
# We need to build this command in case namespaces are in use.
RESTORECMD="proxmox-backup-client restore ${selected_backup_type}/${selected_backup_id}/${selected_backup_time} ${selected_file} ${restore_path}"
if [ -n "$RESTORECMD" ]; then
if [ -n "$PBS_DATASTORE_NS" ]; then
RESTORECMD+=" --ns ${PBS_DATASTORE_NS}"
fi
echo -e "\nRestore command:"