Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ DEST=${BIN_DIR}/frankenphp

OS=$(uname -s)
ARCH=$(uname -m)
GNU=""

if type "tput" >/dev/null 2>&1; then
bold=$(tput bold || true)
Expand All @@ -31,6 +32,11 @@ Linux*)
THE_ARCH_BIN=""
;;
esac

if getconf GNU_LIBC_VERSION >/dev/null 2>&1; then
THE_ARCH_BIN="${THE_ARCH_BIN}-gnu"
GNU=" (glibc)"
fi
;;
Darwin*)
case ${ARCH} in
Expand Down Expand Up @@ -58,7 +64,7 @@ fi

SUDO=""

echo "📦 Downloading ${bold}FrankenPHP${normal} for ${OS} (${ARCH}):"
echo "📦 Downloading ${bold}FrankenPHP${normal} for ${OS}${GNU} (${ARCH}):"

# check if $DEST is writable and suppress an error message
touch "${DEST}" 2>/dev/null
Expand Down
Loading