sources.list: fix install scripts

This commit is contained in:
Aminda Suomalainen 2015-07-12 11:39:41 +03:00
parent b4f3ac370e
commit 93e5eab3f5
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
export RELEASE=$(lsb_release -sr)
a[1]="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"
export DOWNLOAD="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"
echo "I am now changing directory to /etc/apt/."
echo ""
cd /etc/apt/
@ -10,7 +10,7 @@ cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "I will now download the sources.list file from https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE and save it as /etc/apt/sources.list ."
echo ""
echo "" > /etc/apt/sources.list
\wget ${a[1]} -O /etc/apt/sources.list
\wget $DOWNLOAD -O /etc/apt/sources.list
echo ""
echo "The new sources.list file should now be installed."
echo ""

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
export RELEASE=$(lsb_release -sc)
a[1]="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"
export DOWNLOAD="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"
echo "I am now changing directory to /etc/apt/."
echo ""
cd /etc/apt/
@ -10,7 +10,7 @@ cp /etc/apt/sources.list /etc/apt/sources.list.bak
echo "I will now download the sources.list file from https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE and save it as /etc/apt/sources.list ."
echo ""
echo "" > /etc/apt/sources.list
\wget ${a[1]} -O /etc/apt/sources.list
\wget $DOWNLOAD -O /etc/apt/sources.list
echo ""
echo "The new sources.list file should now be installed."
echo ""