Wiktor Zykubek 65d6817092 Add 'shelp' script
Also add simple description comment to all script.
2020-05-15 20:56:33 +02:00

13 lines
309 B
Bash
Executable File

#!/bin/sh
# Autistic script for convert GitHub links to files and download it via wget.
echo "$1" | sed '
s/github.com/raw.githubusercontent.com/g;
s/blob//g
' | xargs -r wget
filename="$(echo "$1" | sed 's/.*\///g')"
[ "$(sed 's/#\!\/.*/bang/g; 1q' "$filename")" = "bang" ] && chmod +x "$filename"