From d59362e82c415555880f3187704bac39f6a45c11 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Thu, 20 Jun 2019 23:54:23 +0200 Subject: [PATCH] install script --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..06be4be --- /dev/null +++ b/install.sh @@ -0,0 +1,9 @@ +#!/bin/sh +OUT_FILE=/usr/local/bin/autorestic + +curl -s https://api.github.com/repos/cupcakearmy/autorestic/releases/latest \ +| grep "browser_download_url.*-macos" \ +| cut -d : -f 2,3 \ +| tr -d \" \ +| wget -q -O $OUT_FILE -i - +chmod +x $OUT_FILE \ No newline at end of file