Skip to content

Commit

Permalink
fix: ensure zstd is included in the image as it's required for the in…
Browse files Browse the repository at this point in the history
…stall script
  • Loading branch information
RoyalOughtness authored Oct 10, 2024
1 parent 447a9db commit e0d0bfb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/brew/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit e0d0bfb

Please sign in to comment.