diff --git a/.local/bin/scripts/gethub b/.local/bin/scripts/gethub index 7d5a405..b47ce32 100755 --- a/.local/bin/scripts/gethub +++ b/.local/bin/scripts/gethub @@ -7,3 +7,7 @@ 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"