bin/ex: fix unpacking for zstd containers

This commit is contained in:
xeruf 2022-02-10 16:02:45 +01:00
parent 84ebcd794a
commit 704ff97426
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ for arg do
esac
test "$(basename "$PWD")" = "$namepart" &&
if test $# -lt 2 -a "$(ls -U | wc -l)" -lt 3
then mv * .. && cd .. && rm -d "$namepart"
then test "$(ls)" && mv * ..
cd .. && rm -d "$namepart"
else cd .. && mv "$namepart" "$name"
fi
)