Bugfix Option 5

This commit is contained in:
Michael Grote 2021-05-27 09:40:13 +02:00
parent a666e90b1c
commit 2756e0a8db

View file

@ -68,9 +68,16 @@ do
& $pfad -r $repository --password-file $passwordfile restore $snapshot --target $target
}
5 {
$befehl=Read-Host -Prompt "Befehl?";
& $pfad -r $repository --password-file $passwordfile $befehl;
break
$snapshot = read-host -Prompt "Snapshot(latest/id)";
$target = read-host -Prompt "Zielpfad: ";
write-host "Include: "
write-host "========================================================================"
write-host -Foregroundcolor red "Beispiele: "
write-host -ForegroundColor yellow "Dateitypen: *.exe`nDatei: C\Users\mg\Desktop\rclone\datei.exe`nOrdner: C\Users\mg\Desktop\rclone\"
write-host "Alles ist Case-Sensitive!"
write-host "========================================================================"
$include = read-host
& $pfad -r $repository --password-file $passwordfile restore $snapshot --target $target --include $include
}
6 {
$snapshot = read-host -Prompt "Snapshot(latest/id)";
@ -141,16 +148,9 @@ do
break
}
17 {
$snapshot = read-host -Prompt "Snapshot(latest/id)";
$target = read-host -Prompt "Zielpfad: ";
write-host "Include: "
write-host "========================================================================"
write-host -Foregroundcolor red "Beispiele: "
write-host -ForegroundColor yellow "Dateitypen: *.exe`nDatei: C\Users\mg\Desktop\rclone\datei.exe`nOrdner: C\Users\mg\Desktop\rclone\"
write-host "Alles ist Case-Sensitive!"
write-host "========================================================================"
$include = read-host
& $pfad -r $repository --password-file $passwordfile restore $snapshot --target $target --include $include
$befehl=Read-Host -Prompt "Befehl?";
& $pfad -r $repository --password-file $passwordfile $befehl;
break
}
99 {exit;break}
default{write-host "`nUngueltige Eingabe!"}