Add autistic 'gethub' script

This commit is contained in:
Wiktor Zykubek 2020-05-14 21:44:14 +02:00
parent 4408d18471
commit 678576709d

9
.local/bin/scripts/gethub Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
# Autistic script for convert GitHub links into
# links to raw files and download it via wget.
echo "$1" | sed '
s/github.com/raw.githubusercontent.com/g;
s/blob//g
' | xargs -r wget