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
4 changes: 3 additions & 1 deletion build-static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ fi

arch="$(uname -m)"
os="$(uname -s | tr '[:upper:]' '[:lower:]')"
md5binary="md5sum"
if [ "${os}" = "darwin" ]; then
os="mac"
md5binary="md5 -q"
fi

if [ -z "${PHP_EXTENSIONS}" ]; then
Expand Down Expand Up @@ -123,7 +125,7 @@ cd ../..
# Embed PHP app, if any
if [ -n "${EMBED}" ] && [ -d "${EMBED}" ]; then
tar -cf app.tar -C "${EMBED}" .
md5 -q app.tar > app_checksum.txt
${md5binary} app.tar > app_checksum.txt
fi

if [ "${os}" = "linux" ]; then
Expand Down