fix bug in archive

This commit is contained in:
Ville Rantanen
2024-04-11 19:29:45 +03:00
parent 7c02ca1956
commit 8bf9b80dff
2 changed files with 2 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ _write() {
[[ -d "$FILE" ]] && {
[[ "${NAME,,}" = *".tar" ]] || NAME="${NAME}".tar
tar c "$2" | _write_stdin "$NAME"
tar c "$FILE" | _write_stdin "$NAME"
return $?
}