Whitespace cleanup to get in sync with AniNIX/Uniglot hooks

This commit is contained in:
2022-11-20 20:03:01 -06:00
parent a43cb4b6bb
commit a34c96df6b
96 changed files with 713 additions and 400 deletions

View File

@@ -1,9 +1,9 @@
#!/bin/bash
# File: find-mirrors
#
#
# Description: This file generates a pacman mirrorlist to ensure hosts use the right mirrors for performance.
#
#
# Package: AniNIX::Foundation/HelloWorld
# Copyright: WTFPL
#
@@ -11,6 +11,6 @@
country="United States"
curl -s https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/pacman-mirrorlist/trunk/mirrorlist | awk '/^## '"$country"'$/{f=1; next}f==0{next}/^$/{exit}{print substr($0, 1);}' | sed 's/^#Server/Server/' > /tmp/mirrorlist
curl -s https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/pacman-mirrorlist/trunk/mirrorlist | awk '/^## '"$country"'$/{f=1; next}f==0{next}/^$/{exit}{print substr($0, 1);}' | sed 's/^#Server/Server/' > /tmp/mirrorlist
rankmirrors -n 6 /tmp/mirrorlist > files/mirrorlist
rm /tmp/mirrorlist