fix: ensure zstd is included in the image as it's required for the in… (#341)
This commit is contained in:
parent
447a9db5e2
commit
8e582d701b
1 changed files with 13 additions and 0 deletions
|
|
@ -22,6 +22,19 @@ if ! command -v gcc &> /dev/null; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# Check if zstd is installed & install it if it's not
|
||||
if ! command -v zstd &> /dev/null; then
|
||||
if command -v rpm-ostree &> /dev/null; then
|
||||
echo "Installing \"zstd\" package, which is necessary for Brew to function"
|
||||
rpm-ostree install zstd
|
||||
else
|
||||
echo "ERROR: \"zstd\" package could not be found"
|
||||
echo " Brew's installer depends on \"zstd\" in order to function"
|
||||
echo " Please include \"zstd\" in the list of packages to install with the system package manager"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Module-specific directories and paths
|
||||
MODULE_DIRECTORY="${MODULE_DIRECTORY:-/tmp/modules}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue