TheLounge - dos-style line-endings causing problems #117

Closed
opened 2026-02-04 16:42:43 +03:00 by OVERLORD · 5 comments
Owner

Originally created by @jamezpolley on GitHub (Nov 30, 2024).

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

I'm able to get it to work via dos2unix: bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/the-lounge.sh | dos2unix)"

so I'm guessing this is an issue with the way the file has been saved?

What settings are you currently utilizing?

  • Default Settings
  • Advanced Settings

Which Linux distribution are you employing?

Debian 12

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

root@bully:~# bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/the-lounge.sh)"
: No such file or directory
bash: line 7: $'\r': command not found
bash: -c: line 8: syntax error near unexpected token `$'{\r''
bash: -c: line 8: `function header_info {

Running dos2unix on the-lounge.sh fixed the main problem, but I've run into another problem later:

N: Ignoring file 'nodesource.list
   ' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

Please provide detailed steps to reproduce the issue.

  1. Run the command provided at https://community-scripts.github.io/ProxmoxVE/scripts?id=the-lounge
Originally created by @jamezpolley on GitHub (Nov 30, 2024). ### Please verify that you have read and understood the guidelines. yes ### A clear and concise description of the issue. I'm able to get it to work via dos2unix: `bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/the-lounge.sh | dos2unix)"` so I'm guessing this is an issue with the way the file has been saved? ### What settings are you currently utilizing? - [ ] Default Settings - [ ] Advanced Settings ### Which Linux distribution are you employing? Debian 12 ### If relevant, including screenshots or a code block can be helpful in clarifying the issue. ``` root@bully:~# bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/the-lounge.sh)" : No such file or directory bash: line 7: $'\r': command not found bash: -c: line 8: syntax error near unexpected token `$'{\r'' bash: -c: line 8: `function header_info { ``` Running dos2unix on `the-lounge.sh` fixed the main problem, but I've run into another problem later: ``` N: Ignoring file 'nodesource.list ' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension ``` ### Please provide detailed steps to reproduce the issue. 1. Run the command provided at https://community-scripts.github.io/ProxmoxVE/scripts?id=the-lounge
Author
Owner

@Sp3kt3r commented on GitHub (Nov 30, 2024):

Just to confirm I have the same issue when trying to run the script.

root@bully:~# bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/the-lounge.sh)"
: No such file or directory
bash: line 7: $'\r': command not found
bash: -c: line 8: syntax error near unexpected token `$'{\r''
bash: -c: line 8: `function header_info {
@Sp3kt3r commented on GitHub (Nov 30, 2024): Just to confirm I have the same issue when trying to run the script. ``` root@bully:~# bash -c "$(wget -qLO - https://github.com/community-scripts/ProxmoxVE/raw/main/ct/the-lounge.sh)" : No such file or directory bash: line 7: $'\r': command not found bash: -c: line 8: syntax error near unexpected token `$'{\r'' bash: -c: line 8: `function header_info { ```
Author
Owner

@MickLesk commented on GitHub (Nov 30, 2024):

I know. But currently i dont know why. If you Download the file it works smooth. Its very weird.

@MickLesk commented on GitHub (Nov 30, 2024): I know. But currently i dont know why. If you Download the file it works smooth. Its very weird.
Author
Owner

@Sp3kt3r commented on GitHub (Nov 30, 2024):

just tried the script again after #599 completed and its work :) but now I get this error in the dependencies installation section.

image

@Sp3kt3r commented on GitHub (Nov 30, 2024): just tried the script again after #599 completed and its work :) but now I get this error in the dependencies installation section. ![image](https://github.com/user-attachments/assets/69881ec9-05f2-47e2-9af1-3e9632b8f3bd)
Author
Owner

@MickLesk commented on GitHub (Nov 30, 2024):

Done gpg

@MickLesk commented on GitHub (Nov 30, 2024): Done gpg
Author
Owner

@Sp3kt3r commented on GitHub (Nov 30, 2024):

It works 👍 thx

@Sp3kt3r commented on GitHub (Nov 30, 2024): It works 👍 thx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#117