GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DDNet-AI/run.sh at main · Wranked1/DDNet-AI

Expand file tree

/

run.sh

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
executable file
·
25 lines (25 loc) · 1019 Bytes
/

run.sh

Copy path

File metadata and controls

executable file
·
25 lines (25 loc) · 1019 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
cd "$(dirname "$0")" || exit 1
ru() {
case "$DDNET_AI_LANG" in ru) return 0 ;; en) return 1 ;; esac
grep -q '"lang": *"ru"' settings.json 2>/dev/null && return 0
grep -q '"lang": *"en"' settings.json 2>/dev/null && return 1
case "${LC_ALL:-${LC_MESSAGES:-$LANG}}" in ru*) return 0 ;; esac
return 1
}
if ! command -v node >/dev/null 2>&1; then
if ru; then echo "Node.js не найден. Установи Node.js 24 или новее: https://nodejs.org/"; else echo "Node.js was not found. Install Node.js 24 or newer: https://nodejs.org/"; fi
exit 1
fi
major=$(node -p "process.versions.node.split('.')[0]")
if [ "$major" -lt 24 ]; then
if ru; then echo "Нужен Node.js 24 или новее, у тебя $(node -v). Скачать: https://nodejs.org/"; else echo "Node.js 24 or newer is needed, this is $(node -v). Download: https://nodejs.org/"; fi
exit 1
fi
open=""
while true; do
node start.mjs "$@" $open
code=$?
[ "$code" -eq 75 ] || exit "$code"
open="--no-open"
done
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.