Created
October 24, 2019 07:44
-
-
Save wongsyrone/bea7ba5665182c7cd0df2b00360f8a67 to your computer and use it in GitHub Desktop.
pacman show download URL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# You could also use a script as your XferCommand | |
# in pacman.conf: XferCommand = /usr/local/bin/pacman-downloadhelper.sh %o %u | |
# usage: pacman-downloadhelper %o %u | |
outfile=$1 | |
url=$2 | |
# print debug output for the xfercommand | |
set -x | |
# /usr/bin/curl -L -C - -f -o "$outfile" "$url" | |
/usr/bin/curl -x 192.168.8.60:808 -L -C - -f -o "$outfile" "$url" | |
# /usr/bin/wget --passive-ftp -c -O "$outfile" "$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment