File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -165,22 +165,13 @@ sudo bash <<'___'
165165set -e
166166pemurl=https://gershnik.com/macports-repo/macports.pem
167167porturl=https://www.gershnik.com/macports-repo/ports.tar.bz2
168- archurl=https://www.gershnik.com/macports-repo/archives
169168prefix=$(dirname $(dirname $(which port)))
170169pemfile="$prefix/share/macports/gershnik.pem"
171170pubkeysfile="$prefix/etc/macports/pubkeys.conf"
172171sourcesfile="$prefix/etc/macports/sources.conf"
173- archfile="$prefix/etc/macports/archive_sites.conf"
174172curl -s $pemurl > "$pemfile"
175173grep -qxF "$pemfile" "$pubkeysfile" || echo $pemfile >> "$pubkeysfile"
176174grep -qxF "$porturl" "$sourcesfile" || echo $porturl >> "$sourcesfile"
177- if [ "$prefix" == "/opt/local" ]; then
178- grep -qx "url\\s+$archurl\\s*" "$archfile" || (
179- echo "" >> "$archfile"
180- echo "name gershnik.com" >> "$archfile"
181- echo "urls $archurl" >> "$archfile"
182- )
183- fi
184175sudo port sync
185176___
186177```
You can’t perform that action at this time.
0 commit comments