chore: fix logcli package

This commit is contained in:
xeruf 2022-07-05 12:07:18 +02:00
parent 470a408114
commit a15949d9dc
3 changed files with 9 additions and 1 deletions

View File

@ -2,6 +2,9 @@
arg=$1
name=$2
location="/usr/local/bin/${name:-$(basename "$arg")}"
curl "$arg" | sudo tee "$location" > /dev/null
case "$arg" in
(*://*) curl "$arg" | sudo tee "$location" > /dev/null;;
(*) cp "$arg" "$location";;
esac
sudo chmod +x "$location"
test "$INSTALEE_VERBOSE" -lt 3 || echo "Installed $name to $location"

5
packages/logcli/script Normal file
View File

@ -0,0 +1,5 @@
cd /tmp
git clone https://github.com/grafana/loki.git
cd loki
make logcli
cmd/logcli/logcli