Update Sun Aug 22 03:29:34 PM CDT 2021

This commit is contained in:
Dewalt 2021-08-22 15:29:34 -05:00
parent 991e94a89b
commit 7f311300f9
1 changed files with 0 additions and 17 deletions

View File

@ -1201,23 +1201,6 @@ gen_new_sources() {
i=$(cat /tmp/mirrors_speedtest | sort -n | tail -n1 | cut -d "/" -f3)
mod_deb=$(cat /etc/apt/sources.list | grep -c "deb http\:\/\/.*\/kali kali\-rolling main contrib no\n-free")
mod_debsrc=$(cat /etc/apt/sources.list | grep -c "deb-src http\:\/\/.*\/kali kali\-rolling main contrib non\-free")
# if [[ $mod_deb = 1 ]]
# then
# echo > /dev/null
# moved to after Y statement in case $userinput
# sed s:"deb http\:\/\/.*\/kali kali\-rolling main contrib non\-free":"deb http\:\/\/"$i"\/kali kali\-rolling main contrib non\-free":g -i /etc/apt/sources.list
# else
# echo -e "\n $redexclaim Unable to find deb http://*/kali in /etc/apt/sources.list"
# fi
# if [[ $mod_debsrc = 1 ]]
# then
# echo > /dev/null
# move to after Y statement in case $userinput
# i=$(cat /tmp/mirrors_speedtest | sort -n | tail -n1 | cut -d "/" -f3)
#
# else
# echo -e "\n $redexclaim Unable to find deb-src in /etc/apt/sources.list"
# fi
echo -e "\n $greenplus Based on tests the best selection is: $i "
echo -e "\n Preview of the new /etc/apt/sources.list:"
newdeb=$(cat /etc/apt/sources.list | grep "deb http://" | sed s:"deb http\:\/\/.*\/kali kali\-rolling main contrib non\-free":"deb http\:\/\/"$i"\/kali kali\-rolling main contrib non\-free":g)