wzykubek d426ba3e91
Upload totally new dotfiles for new configuration
Old fiels still available on other branches
2024-10-27 13:26:04 +01:00

13 lines
320 B
Bash
Executable File

#!/usr/bin/env sh
# Autistic script for converting 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"