stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: webui.sh: 97: [[: not found
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
I run webui.sh, I get
$ sh ./webui.sh
./webui.sh: 8: [[: not found
./webui.sh: 17: [[: not found
./webui.sh: 24: [[: not found
./webui.sh: 30: [[: not found
./webui.sh: 36: [[: not found
./webui.sh: 42: [[: not found
./webui.sh: 48: [[: not found
./webui.sh: 53: [[: not found
################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye)
################################################################
./webui.sh: 85: [[: not found
################################################################
Running on goury user
################################################################
./webui.sh: 97: [[: not found
################################################################
ERROR: is not installed, aborting...
################################################################
./webui.sh: 109: hash: : Permission denied
Please fix
Steps to reproduce the problem
- git pull
- sh ./webui.sh
- T_T
What should have happened?
It used to just work
Commit where the problem happens
82725f0ac439f7e3b67858d55900e95330bbd326
What platforms do you use to access UI ?
Linux
What browsers do you use to access the UI ?
No response
Command Line Arguments
No response
Additional information, context and logs
No response
It works with bash, so please just rename it to webui.bash
or just webui
as it is very misleading now
It works with bash, so please just rename it to
webui.bash
or justwebui
as it is very misleading now
Technically it should automatically call the script with bash, given the shebang (the #!/usr/bin/env bash
) at the top. So when you execute the script via ./webui.sh
it will automatically use bash to run it. Using sh webui.sh
"forces" it to use sh
to run it, which wouldn't work (similarly to if you were trying to use python to run it via python webui.sh
). I do understand that the .sh
extension kinda could be confusing sometimes.
So why don't we call it webui.exe or webui.tar.gz? How's about webui.txt? Or webui.jpg?
Because if your goal is to confuse the user, it's not confusing enough. If not, just rename the damned file!
You can make a PR to rename it, it's easy enough. I asked a few guys if this is how it's suppose to be with bash shebang and it is, but if you insist that it must be renamed - just do it and make a pull request.
Sure thing, just don't close the issue until then. It shouldn't take long, I'll PR it as soon as I finish my workday.
https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/7438
tests passed
Frustration clarification:
- When something's clearly wrong and you're "wontfix", it's frustrating to a point of inducing rage
- But if you're "do it yourself", I'll just "sure can do"
I am a python web developer myself and I value software freedom higher than most things in existence. So I'll gladly fix stuff around here if you just affirm it and me being responsible for fixing it.
I can't affirm anything, I'm basically just a user with wiki/issue list edit access. For it to be merged it has to go through AUTO, and somehow I suspect it won't pass.
On my Ubuntu 18.04 system, "sh webui.sh" doesn't work, but "bash webui.sh" works.
I'm using linux mint. For me, it's a permission problem. I just change the permission. sudo chmod +x webui.sh
then execute ./webui.sh
It works with bash, so please just rename it to
webui.bash
or justwebui
as it is very misleading now
useful! just bash webui.bash