mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 19:29:22 +01:00
sources.list: fix install scripts
This commit is contained in:
parent
b4f3ac370e
commit
93e5eab3f5
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
export RELEASE=$(lsb_release -sr)
|
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 "I am now changing directory to /etc/apt/."
|
||||||
echo ""
|
echo ""
|
||||||
cd /etc/apt/
|
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 "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 $DOWNLOAD -O /etc/apt/sources.list
|
||||||
echo ""
|
echo ""
|
||||||
echo "The new sources.list file should now be installed."
|
echo "The new sources.list file should now be installed."
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
export RELEASE=$(lsb_release -sc)
|
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 "I am now changing directory to /etc/apt/."
|
||||||
echo ""
|
echo ""
|
||||||
cd /etc/apt/
|
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 "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 $DOWNLOAD -O /etc/apt/sources.list
|
||||||
echo ""
|
echo ""
|
||||||
echo "The new sources.list file should now be installed."
|
echo "The new sources.list file should now be installed."
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user