Add autistic 'gethub' script

This commit is contained in:
samedami 2020-05-14 21:44:14 +02:00
parent fff198410d
commit 2a4ebb37f9
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

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