bin/ex: fix unpacking for zstd containers
This commit is contained in:
parent
84ebcd794a
commit
704ff97426
|
@ -34,7 +34,8 @@ for arg do
|
||||||
esac
|
esac
|
||||||
test "$(basename "$PWD")" = "$namepart" &&
|
test "$(basename "$PWD")" = "$namepart" &&
|
||||||
if test $# -lt 2 -a "$(ls -U | wc -l)" -lt 3
|
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"
|
else cd .. && mv "$namepart" "$name"
|
||||||
fi
|
fi
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue