Browse Source

rc: update sources.list function

remotes/blesmrt/master
Mikaela Suomalainen 4 years ago
parent
commit
a4ce5a832d
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      rc/bashrc
  2. +2
    -2
      rc/zshrc

+ 2
- 2
rc/bashrc View File

@@ -731,7 +731,7 @@ cd
function ubuntu-sources-list-install {

export RELEASE=$(lsb_release -sr)
a[1]="http://mikaela.github.io/shell-things/sources.list/$RELEASE"
a[1]="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"

echo "I am now changing directory to /etc/apt/."
echo ""
@@ -741,7 +741,7 @@ echo "I will now backup sources.list to sources.list.bak ."
echo ""
cp /etc/apt/sources.list /etc/apt/sources.list.bak

echo "I will now download the sources.list file from https://mikaela.github.io/shell-things/sources.list/$RELEASE and save it as /etc/apt/sources.list ."
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

+ 2
- 2
rc/zshrc View File

@@ -707,7 +707,7 @@ cd
function ubuntu-sources-list-install {

export RELEASE=$(lsb_release -sr)
a[1]="http://mikaela.github.io/shell-things/sources.list/$RELEASE"
a[1]="https://raw.githubusercontent.com/Mikaela/shell-things/master/etc/apt/sources.list/$RELEASE"

echo "I am now changing directory to /etc/apt/."
echo ""
@@ -717,7 +717,7 @@ echo "I will now backup sources.list to sources.list.bak ."
echo ""
cp /etc/apt/sources.list /etc/apt/sources.list.bak

echo "I will now download the sources.list file from https://mikaela.github.io/shell-things/sources.list/$RELEASE and save it as /etc/apt/sources.list ."
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

Loading…
Cancel
Save