mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-26 12:52:43 +01:00
rc: update sources.list function
This commit is contained in:
parent
588c211f76
commit
a4ce5a832d
@ -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
|
||||
|
4
rc/zshrc
4
rc/zshrc
@ -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…
Reference in New Issue
Block a user