Skip to content
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

config.txt - "File not found" #4

Open
kkuez opened this issue Jun 7, 2024 · 1 comment
Open

config.txt - "File not found" #4

kkuez opened this issue Jun 7, 2024 · 1 comment

Comments

@kkuez
Copy link

kkuez commented Jun 7, 2024

xxx:~/EvilPortal/EvilPortalGenerator/EvilPortalGeneratorEN/source$ sudo sh generate.sh : No such file: cannot open ../config.txt : not found: 4: generate.sh: 5: Bad substitution

  • Changed shebang to "/usr/bin/bash"
  • Rewrote EOL with nano
  • Changed path ./../config.txt <-> ../config.txt
  • sudo -s and regular user

Always the same result!
Found by cat etc.

Ubuntu 23/Plasma
Konsole/Yakuake

@Unknown-Charlio
Copy link

Had the same issue, looks like the new line is in windows format.
Run dos2unix against the script and it will fix it: $ dos2unix generate.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants