int128 / int128/gradle-ssh-plugin
Feature: Ability to filter text files on transfer to fix line endings
Nobody has claimed this yet.
- Dominant language
- Groovy
- Stars
- 325
- Forks
- 59
- Avg merge
- 5h 29m
- Merged PRs (30d)
- 6
Description
When transfering a perl script from a Windows machine to a Unix machine, the line endings are preserved. I found this http://stackoverflow.com/a/5958926 for fixing the line endings when archiving jars or wars, but I can't seem to apply a similar method to the put or get ssh commands.
From a windows machine with git config autocrlf==auto
// Paste the snippet of script or logs
put from: files("$commandDir/brExecute.pl"), into: 'bin/'
then on the remote machine:
~$ brExecute.pl MyJob MyFile.xlsx
-bash: /home/user/bin/brExecute.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the put and get SSH command paths used by the Groovy DSL; the issue provides a brExecute.pl example and the resulting /usr/bin/perl^M error. Define completion as a way to identify text transfers and normalize line endings without changing binary transfers, then verify the example on a Unix target.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100