mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 10:26:29 +02:00
17 lines
265 B
Bash
Executable file
17 lines
265 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
BINARY=$1
|
|
DIR=$(dirname "${BINARY}")
|
|
|
|
(
|
|
cd "$DIR"
|
|
zip envoy.zip envoy
|
|
)
|
|
|
|
echo "appending $DIR/envoy.zip to ${BINARY}"
|
|
|
|
if [ "$(unzip -z -qq "$BINARY" 2>&1)" != "" ]; then
|
|
cat "$DIR/envoy.zip" >>"${BINARY}"
|
|
fi
|
|
zip -A "${BINARY}"
|