tools: setup.sh isn't for AGNOS (#38588)

* tools: setup.sh isn't for AGNOS

* Update setup.sh
This commit is contained in:
Adeeb Shihadeh
2026-08-10 08:16:57 -07:00
committed by GitHub
parent ea4dbc8936
commit 65c007a9a2
+8
View File
@@ -33,6 +33,13 @@ cat << 'EOF'
EOF
}
function check_platform() {
if [[ -f /AGNOS ]]; then
echo -e "[${RED}${NC}] This installer is for PCs only. The environment is pre-configured in AGNOS."
return 1
fi
}
function check_stdin() {
if [ -t 0 ]; then
INTERACTIVE=1
@@ -135,6 +142,7 @@ function install_with_op() {
}
show_motd
check_platform
check_stdin
ask_dir
check_dir