Drop shell completions from the RPM
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Package the (already built) agent-sandbox binary, its shell completions and
|
||||
# the default allowlist into an RPM with nfpm.
|
||||
# Package the (already built) agent-sandbox binary and the default
|
||||
# allowlist into an RPM with nfpm.
|
||||
# Usage: scripts/build-rpm.sh [version] (defaults to $CI_COMMIT_TAG)
|
||||
set -euo pipefail
|
||||
cd "$(dirname "${BASH_SOURCE[0]}")/.."
|
||||
@@ -15,11 +15,6 @@ if [[ ! -f $DIST/$BINARY ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p "$DIST/completions"
|
||||
"./$DIST/$BINARY" completion bash >"$DIST/completions/$BINARY.bash"
|
||||
"./$DIST/$BINARY" completion zsh >"$DIST/completions/_$BINARY"
|
||||
"./$DIST/$BINARY" completion fish >"$DIST/completions/$BINARY.fish"
|
||||
|
||||
export PACKAGE_VERSION="${VERSION#v}"
|
||||
envsubst <packaging/nfpm.yaml >"$DIST/nfpm.yaml"
|
||||
nfpm pkg --config "$DIST/nfpm.yaml" --target "$DIST" --packager rpm
|
||||
|
||||
Reference in New Issue
Block a user