perf(install): enhance execution efficiency

This commit is contained in:
Sofia
2026-01-15 18:22:35 +08:00
committed by GitHub
parent cb38a98332
commit 635dcd7ee3

View File

@@ -667,7 +667,7 @@ if [ "$USER" != "root" ] && [ -z "$systype" ]; then
done
fi
if [ -n "$(echo "$url" | grep master)" ]; then
if echo "$url" | grep -q 'master'; then
setversion
fi