chore(packages): add krew and use mktemp
This commit is contained in:
parent
9632c7fde6
commit
9739fea99c
4 changed files with 12 additions and 4 deletions
8
packages/krew/linux
Executable file
8
packages/krew/linux
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/sh -ex
|
||||
cd "$(mktemp -d)"
|
||||
OS="$(uname | tr '[:upper:]' '[:lower:]')"
|
||||
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')"
|
||||
KREW="krew-${OS}_${ARCH}"
|
||||
curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz"
|
||||
tar zxvf "${KREW}.tar.gz"
|
||||
./"${KREW}" install krew
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -e
|
||||
cd /tmp
|
||||
git clone https://github.com/grafana/loki.git || true
|
||||
cd "$(mktemp -d)"
|
||||
git clone https://github.com/grafana/loki.git
|
||||
cd loki
|
||||
make logcli >&2
|
||||
echo "$PWD/cmd/logcli/logcli"
|
||||
|
|
0
packages/passff/linux
Normal file → Executable file
0
packages/passff/linux
Normal file → Executable file
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env sh
|
||||
cd /tmp
|
||||
cd "$(mktemp -d)"
|
||||
git clone https://github.com/nonpop/xkblayout-state
|
||||
cd xkblayout-state
|
||||
make
|
||||
sudo mv -v xkblayout-state /usr/local/bin
|
||||
echo "$PWD/xkblayout-state"
|
Loading…
Add table
Reference in a new issue