Browse Source

Merge pull request #1500 from joakimr-axis/joakimr-axis_package-cli

package-cli: Remove redundant rm -rf build/data
pull/1752/head
Erik Wilson 5 years ago committed by GitHub
parent
commit
c769bb115a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      scripts/package-cli

14
scripts/package-cli

@ -7,11 +7,11 @@ cd $(dirname $0)/..
GO=${GO-go} GO=${GO-go}
rm -rf bin/crictl bin/kubectl bin/k3s-agent bin/k3s-server bin/kubectl bin/k3s build/data for i in crictl kubectl k3s-agent k3s-server k3s; do
ln -s containerd bin/k3s-agent rm -f bin/$i
ln -s containerd bin/k3s-server ln -s containerd bin/$i
ln -s containerd bin/kubectl done
ln -s containerd bin/crictl
for i in bridge flannel host-local loopback portmap; do for i in bridge flannel host-local loopback portmap; do
rm -f bin/$i rm -f bin/$i
ln -s cni bin/$i ln -s cni bin/$i
@ -56,8 +56,8 @@ LDFLAGS="
-w -s -w -s
" "
STATIC="-extldflags '-static'" STATIC="-extldflags '-static'"
if [ "$DQLITE" = "true" ]; then if [ "$DQLITE" = 'true' ]; then
DQLITE_TAGS="dqlite" DQLITE_TAGS='dqlite'
fi fi
CGO_ENABLED=0 "${GO}" build -tags "$DQLITE_TAGS" -ldflags "$LDFLAGS $STATIC" -o ${CMD_NAME} ./cmd/k3s/main.go CGO_ENABLED=0 "${GO}" build -tags "$DQLITE_TAGS" -ldflags "$LDFLAGS $STATIC" -o ${CMD_NAME} ./cmd/k3s/main.go

Loading…
Cancel
Save