Changes in 'gethub' script
Automatic made file executable when it have shebang.
This commit is contained in:
parent
678576709d
commit
5dcb6fd7b7
@ -7,3 +7,7 @@ echo "$1" | sed '
|
|||||||
s/github.com/raw.githubusercontent.com/g;
|
s/github.com/raw.githubusercontent.com/g;
|
||||||
s/blob//g
|
s/blob//g
|
||||||
' | xargs -r wget
|
' | xargs -r wget
|
||||||
|
|
||||||
|
filename="$(echo "$1" | sed 's/.*\///g')"
|
||||||
|
|
||||||
|
[ "$(sed 's/#\!\/.*/bang/g; 1q' "$filename")" = "bang" ] && chmod +x "$filename"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user