transcode-open / apt-cyg

Apt-cyg, an apt-get like tool for Cygwin
MIT License
2.99k stars 684 forks source link

Errors when i run apt-cyg command #138

Open MahdiAbediniTCH opened 3 years ago

MahdiAbediniTCH commented 3 years ago

When i run apt-cyg, no matter what arguments i give, it returns this: /usr/bin/apt-cyg: line 25: $'\r': command not found /usr/bin/apt-cyg: line 121: syntax error near unexpected token $'{\r'' 'usr/bin/apt-cyg: line 121:function wget { line 25 doesn't even have any code in it.

viciousvex commented 2 years ago

This happens when you use a git installation on Windows to clone this repository. Then CRLF line endings are automatically added to files, although bash doesn't like these (\r stands for "Carriage return") and is not used in Unix sytems or cygwin. Just install dos2unix in cygwin and do "dos2unix apt-get" to change Windows line feeds to Unix ones.

MahdiAbediniTCH commented 2 years ago

thanks -------- Original message --------From: Alex @.> Date: 01/02/2022 13:36 (GMT+03:30) To: transcode-open/apt-cyg @.> Cc: Mahdi Abedini @.>, Author @.> Subject: Re: [transcode-open/apt-cyg] Errors when i run apt-cyg command (#138) This happens when you use a git installation on Windows to clone this repository. Then CRLF line endings are automatically added to files, although bash doesn't like these (\r stands for "Carriage return") and is not used in Unix sytems or cygwin. Just install dos2unix in cygwin and do "dos2unix apt-get" to change Windows line feeds to Unix ones.

—Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>