From 4a0a3bbb17b27fecdcc28b2e4819311e5c57ec2d Mon Sep 17 00:00:00 2001 From: Rob Muhlestein Date: Thu, 21 Sep 2023 13:30:45 -0400 Subject: [PATCH] add cleanup to install-istioctl --- install/ubuntu/install-istioctl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 install/ubuntu/install-istioctl diff --git a/install/ubuntu/install-istioctl b/install/ubuntu/install-istioctl new file mode 100755 index 0000000..aff673e --- /dev/null +++ b/install/ubuntu/install-istioctl @@ -0,0 +1,13 @@ +#!/bin/sh +set -e + +cleanup () { + rm -rf ./istio-* +} +trap cleanup EXIT + +curl -L https://istio.io/downloadIstio | sh - +mkdir -p ~/.local/bin +mv istio-*/bin/istioctl ~/.local/bin +#curl -L https://istio.io/downloadIstio | ISTIO_VERSION=1.19.0 TARGET_ARCH=x86_64 sh - +