Fixed bug
Fixed issue with subshell command not being completed.
This commit is contained in:
parent
00275314d7
commit
0fb16f178d
|
|
@ -58,7 +58,7 @@ function archive_system {
|
|||
function restore_files {
|
||||
local log_out=$(realpath "${0%/*}/.log.1")
|
||||
[[ -e $1 ]] && log "ERROR" "Restore function was called without any arguments." "$log_out"
|
||||
local backup_file="/tmp/microsoft-edge-autoupdater/$(echo $1 | 's/\//_/').tar.gz"
|
||||
local backup_file="/tmp/microsoft-edge-autoupdater/$(echo $1 | sed 's/\//_/').tar.gz"
|
||||
[[ -f "$backup_file" ]] && { log "ERROR" "There is no backup of Microsoft Edge (Beta) identified. Restoration not possible." "$log_out" ; return 12 ; }
|
||||
tar -xzf "$backup_file" "/" > "/tmp/microsoft-edge-autoupdater/tar_dump.log" 2>>"$log_out"
|
||||
exit_code=$?
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user