fix(RESTORE): fix restore path when non-verbose

- non-verbose tar extraction was set to null path
This commit is contained in:
Asif Bacchus 2021-02-09 14:58:50 -07:00
parent 3a3b02685b
commit 876f8eee9e

View File

@ -57,7 +57,7 @@ doRestore() {
return 0
fi
else
if (! (cd "$sourceFiles/_data" && tar -cf - .) | (cd "${3}" && tar xvf -) > /dev/null 2>&1 ); then
if (! (cd "$sourceFiles/_data" && tar -cf - .) | (cd "${2}" && tar xvf -) > /dev/null 2>&1 ); then
return 1
else
return 0