Datalad download-url failing to download scripts from Github correctly

Hi Datalad Team,

Another but hopefully easier question this time.

When using datalad download-url to download scripts from Github (specifically https://github.com/treanus/KUL_NeuroImaging_Tools/blob/master/KUL_dcm2bids.sh) I end up with an unreadable script in my dataset (see https://github.com/labgas/proj_discoverie_code/blob/master/prep/KUL_dcm2bids.sh).

Any idea why this may be and how to solve it?

Thanks again,

Lukas

Those a html pages. You need to use URLs to “raw file” which GitHub gives per each file (click on three dots you have for each file header to bring menu). So the correct one would be

https://raw.githubusercontent.com/treanus/KUL_NeuroImaging_Tools/master/KUL_dcm2bids.sh

Haha, this one is clearly easier than the previous one - thanks a lot Yarik!

L