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

[Bug] Error "./build.sh: line 516: : command not found" when running #499

Closed
1 task done
BA7JCM opened this issue Apr 18, 2023 · 3 comments
Closed
1 task done

[Bug] Error "./build.sh: line 516: : command not found" when running #499

BA7JCM opened this issue Apr 18, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@BA7JCM
Copy link

BA7JCM commented Apr 18, 2023

Steps to reproduce/复现步骤

#497 ,不小心点了一下关闭,然后就被bot锁死了,只好开了个新的

Expected behaviour/预期行为

#497 ,不小心点了一下关闭,然后就被bot锁死了,只好开了个新的

Actual behaviour/实际行为

#497 ,不小心点了一下关闭,然后就被bot锁死了,只好开了个新的

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

8337c73

Linux distribution info/Linux 发行版信息

#497 ,不小心点了一下关闭,然后就被bot锁死了,只好开了个新的

Windows version/Windows 版本

报错的时候没有

Build Parameters/构建参数

#497 ,不小心点了一下关闭,然后就被bot锁死了,只好开了个新的

Version requirement/版本要求

  • I am using latest commit of MagiskOnWSALocal/我正在使用最新 commit 的版本

Logs/日志

日志见隔壁#497(https://github.com/LSPosed/MagiskOnWSALocal/issues/497) ,不小心点了一下关闭,然后就被bot锁死了,只好开了个新的

@BA7JCM BA7JCM added the bug Something isn't working label Apr 18, 2023
@BA7JCM
Copy link
Author

BA7JCM commented Apr 18, 2023

command -v sudo >/dev/null 2>&1 && SUDO="$(which sudo 2>/dev/null)"

这行找到的是什么? 加echo看看

Originally posted by @BA7JCM in #497 (comment)

我在下一行加了个echo:
image
跑完了依然报错,看 sudo.log ,是一个空白的文件
image
但是我在启动容器的时候加一句安装sudo的命令,让在执行脚本前先安装sudo,就能正常跑完整个脚本

@BA7JCM
Copy link
Author

BA7JCM commented Apr 18, 2023

image
更新了 d819436 之后,起容器的时候不用apt update了,但是仍然会因为没有sudo导致同样的报错,起容器的命令:

docker run -it --rm -v `pwd`/wsa/work:/root/wsa -v `pwd`/wsa/tmp:/tmp --privileged=true ubuntu bash -c "/root/wsa/MagiskOnWSALocal/scripts/run.sh || bash"

@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2023
@Howard20181
Copy link
Member

Howard20181 commented Apr 18, 2023

cd ~
git clone https://github.com/LSPosed/MagiskOnWSALocal.git --depth 1
cd ./MagiskOnWSALocal
docker run --rm -ti -v"$(pwd)":/root/MagiskOnWSALocal --privileged=true ubuntu
cd ~/MagiskOnWSALocal
./scripts/install_deps.sh
./scripts/build.sh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants