diff --git a/handlers/script/install b/handlers/script/install index b39ce08..9f37312 100755 --- a/handlers/script/install +++ b/handlers/script/install @@ -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" diff --git a/packages/logcli/script b/packages/logcli/script new file mode 100644 index 0000000..ee06a47 --- /dev/null +++ b/packages/logcli/script @@ -0,0 +1,5 @@ +cd /tmp +git clone https://github.com/grafana/loki.git +cd loki +make logcli +cmd/logcli/logcli diff --git a/packages/logcli/make b/packages/loki/make similarity index 100% rename from packages/logcli/make rename to packages/loki/make