mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19: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
|
||||
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 ""
|
||||
|
@ -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 ""
|
||||
|
Loading…
Reference in New Issue
Block a user