circulosmeos / gdown.pl

Google Drive direct download of big files
https://circulosmeos.wordpress.com/2014/04/12/google-drive-direct-download-of-big-files
GNU General Public License v3.0
937 stars 196 forks source link

Search PATH for perl #2

Closed tpenguinltg closed 6 years ago

tpenguinltg commented 6 years ago

perl is not always in /usr/local/bin/perl (e.g. mine is /usr/bin/perl), so use /usr/bin/env to search for perl in PATH.

Also add executable bit to allow calling directly (i.e. ./gdown.pl).

circulosmeos commented 6 years ago

Thanks, @tpenguinltg !

circulosmeos commented 6 years ago

This, unfortunately, makes github think that this is prolog, not Perl... any ideas on how to help github to correctly recognize the language? :-o

tpenguinltg commented 6 years ago

Interesting, because apart from the extension, this looks nothing like prolog.

It's an entry in .gitattributes. I'll make another PR when I find the specifics.

tpenguinltg commented 6 years ago

Opened #3 to address the issue.