mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-17 22:20:49 +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 {
|
function ubuntu-sources-list-install {
|
||||||
|
|
||||||
export RELEASE=$(lsb_release -sr)
|
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 "I am now changing directory to /etc/apt/."
|
||||||
echo ""
|
echo ""
|
||||||
@ -741,7 +741,7 @@ echo "I will now backup sources.list to sources.list.bak ."
|
|||||||
echo ""
|
echo ""
|
||||||
cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
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 ""
|
||||||
echo "" > /etc/apt/sources.list
|
echo "" > /etc/apt/sources.list
|
||||||
\wget ${a[1]} -O /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 {
|
function ubuntu-sources-list-install {
|
||||||
|
|
||||||
export RELEASE=$(lsb_release -sr)
|
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 "I am now changing directory to /etc/apt/."
|
||||||
echo ""
|
echo ""
|
||||||
@ -717,7 +717,7 @@ echo "I will now backup sources.list to sources.list.bak ."
|
|||||||
echo ""
|
echo ""
|
||||||
cp /etc/apt/sources.list /etc/apt/sources.list.bak
|
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 ""
|
||||||
echo "" > /etc/apt/sources.list
|
echo "" > /etc/apt/sources.list
|
||||||
\wget ${a[1]} -O /etc/apt/sources.list
|
\wget ${a[1]} -O /etc/apt/sources.list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user