aboutsummaryrefslogtreecommitdiffstats
path: root/update-mirrors
Commit message (Collapse)AuthorAgeFilesLines
* Replace ‘-L’ with ‘--location’Gravatar Tom Willemse2022-06-181-1/+1
| | | | | | This produces no difference functionally since ‘--location’ and ‘-L’ are aliases, but generally I prefer using long argument names in scripts because they make it clearer what is going on.
* Show error messages generated by ‘curl’Gravatar Tom Willemse2022-06-181-1/+1
| | | | | | | | | The ‘-s’ switch makes ‘curl’ completely silent, even on error messages. So when it fails it doesn't tell us why. The ‘--no-progress-meter’ disables the normal progress meter output so that when everything succeeds, there is no output, but when there is a failure we still get to see what that is.
* Don't write the mirrorlist if it can't be downloadedGravatar Tom Willemse2022-06-181-2/+8
| | | | | | | | Before if the ‘curl’ command failed, it wouldn't send any output to sed, which would succeed, and that would go into the destination file. Now we check the status explicitly before moving on and print a message when ‘curl’ fails.
* FormattingGravatar Tom Willemse2021-01-181-11/+7
|
* Follow redirects when loading the mirror listGravatar Tom Willemse2021-01-181-1/+1
|
* Fix shellcheck warningsGravatar Tom Willemse2016-10-101-8/+13
|
* Check proper config file locationGravatar Tom Willemse2016-10-101-1/+1
|
* Put default configuration in config.shGravatar Tom Willemse2016-06-121-8/+0
|
* Fall back to reading config from XDG_DATA_DIRSGravatar Tom Willemse2016-06-121-2/+22
| | | | | | | | | | | | | | | If there is no configuration file in “$XDG_CONFIG_HOME/update-mirrors”, try looking through directories specified in XDG_CONFIG_DIRS. If XDG_CONFIG_DIRS is not specified, use “/etc/xdg”. Now config files are searched for in this order: - “$XDG_CONFIG_HOME/update-mirrors/config.sh”, or “$HOME/.config/update-mirrors/config.sh” if XDG_CONFIG_DIR is not defined. - For each DIR in XDG_CONFIG_DIRS “$DIR/update-mirrors/config.sh” is tried, or “/etc/xdg/update-mirrors/config.sh” if XDG_CONFIG_DIRS is not defined.
* Add option to use mirror statusGravatar Tom Willemse2016-06-121-1/+3
| | | | | Using the mirror status when updating mirrors ranks them in order of best synchronized to worst.
* Remove .pacnew if it existsGravatar Tom Willemse2014-04-061-0/+5
|
* Initial commitGravatar Tom Willemse2014-01-181-0/+54