-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Scoop shim (sh script) with CRLF end of line since recent scoop update #4616
Comments
Hi, thanks for the report. This is being handled in #4614 (review) |
Close #4616 Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com>
I've got the same issue:
Now that I have broken scoop installation due to this error: how can I recover my installation? I did it with Cygwin:
but I'm not sure it fixes all places. |
Use globbing in bash to find all sh scripts (i.e. files without extensions) in the shims folder, and run dos2unix on them |
Any progress on this? After Now I start using scoop from |
It has been fixed, but not released. We should do a release soon. /cc @niheaven |
Hi, @rashil2000, I checked out the fix #359cd81 When running scoop.sh after an update it still had an error. It's due to a residual ␍on the last line. This is how the scoop.sh file looked when I used the patched core.ps1 file.
Adding the parameter "-NoNewline" to the cmdlet Out-File should do the trick thus complete the fix by removing the last line. Cheers |
The newline part was fixed in a subsequent PR - https://github.com/ScoopInstaller/Scoop/pull/4637/files |
Sweet 👍 |
Closed in #4614 |
This issue persists
After update the sh file |
Can you run |
I just run
On the other end, I just tried Looks like |
Yes, you're right. I forgot about that :) |
I ran |
Bug Report
Since the beginning of the week (approximately), after updating scoop, the %Scoop%/shims/scoop sh script file is not properly formatted.
The script contains CRLF instead of LF end of lines, as result it can not run from cygwin bash.
Current Behavior
After scoop update "*"
Running scoop sh script ($Scoop/shims/scoop) systematically returns an error
Expected Behavior
After scoop update "*"
Expected output running scoop
Additional context/output
Possible Solution
Editing the script by switching EOL from CRLF to LF fix the issue.
At the moment, "each" time scoop repo is updated this manual fix is overrided.
System details
Windows version: 10
OS architecture: 64bit
Additional software:
Current Scoop version:
5602083 (HEAD -> master, tag: 2021-12-26, origin/master, origin/HEAD) fix(schema): Add 'license' definition (#4596)
Runinng from cygwin (3.3.3(0.341/5/3)) and GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)
Scoop Configuration
The text was updated successfully, but these errors were encountered: