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

Function cmd_requires_root return None #1521

Open
2 of 5 tasks
coela-oss opened this issue Jan 23, 2024 · 0 comments
Open
2 of 5 tasks

Function cmd_requires_root return None #1521

coela-oss opened this issue Jan 23, 2024 · 0 comments
Labels

Comments

@coela-oss
Copy link

Issue: Bug report

Do the checklist before filing an issue:

  • Can you replicate the issue on the supported bench versions?
  • Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome

Describe the bug 📉

in develop branch

bench init
WARN: You should not run this command as root

To Reproduce 📃

Steps to reproduce the behavior:

  1. Setup bench from clone this repo to local Linux (I use ubuntu 22 with Windows WSL)
  2. bench init as root
  3. See error

Expected behavior 📈

The cause is that None is returned here.

I think it should be return False without match any conditions.

Screenshots 🔮

OS (please complete the following information): 🌀

  • [ x] Linux: Ubuntu 22
  • macOS: version
  • Windows version
  • Others? haros:distro:version

Version Information

Can be found out by running bench version in your respective bench folder.

  • Bench Branch: develop
  • Frappe Version: 15
  • ERPNext Version:

Additional context 📄
Add any other context about the problem here.

I am a new of ERP Next and Frappe Bench.
So, I don't fully understand how change return to False on this issue will affect other areas.

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

No branches or pull requests

1 participant