Teach the generic package handling code how to extract zstd (.tar.zst) archives. When zstd is not installed on the host, host-zstd gets built automatically. Signed-off-by: Matt Staveley-Taylor <matt.stav.taylor@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
15 lines
243 B
Bash
Executable File
15 lines
243 B
Bash
Executable File
#!/bin/sh
|
|
|
|
candidate="$1"
|
|
|
|
zstdcat=$(which "$candidate" 2>/dev/null)
|
|
if [ ! -x "$zstdcat" ]; then
|
|
zstdcat=$(which zstdcat 2>/dev/null)
|
|
if [ ! -x "$zstdcat" ]; then
|
|
# echo nothing: no suitable zstdcat found
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo "$zstdcat"
|