This commit is contained in:
2019-09-17 23:18:29 -04:00
parent bdaccf456a
commit 4c35d2e705
4 changed files with 97 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
SOURCES_LIST='/etc/apt/sources.list'
PREVIOUS_SOURCES=$(cat $SOURCES_LIST)
perl -pe '/(http|https):\/\/(.*?)(\/|$)/ && s/$2/mirror.math.princeton.edu\/pub\//g' <<< "$PREVIOUS_SOURCES" > "$SOURCES_LIST"