From 8406fd4658be536c71cc6e905572ca7d4cdc1838 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 20 Oct 2015 21:50:59 +0300 Subject: [PATCH] Create add --- add | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 add diff --git a/add b/add new file mode 100644 index 0000000..616540f --- /dev/null +++ b/add @@ -0,0 +1,6 @@ +#!/bin/sh + +which sudo &>/dev/null && sudo sh -c "echo" && sudo=sudo || sudo="su -c" +echo "Adding repo..." + +$sudo 'sh -c "wget -q -O /etc/apt/sources.list.d/daniil.list http://dano.cu.cc/1IJrcd1 && wget -q -O - http://dano.cu.cc/1Aci9Qp | apt-key add - && apt-key adv --recv-keys --keyserver keys.gnupg.net 72B97FD1D9672C93 && apt-get update"'