bin/ex: fix unpacking for zstd containers
This commit is contained in:
parent
84ebcd794a
commit
704ff97426
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue