mirror of
https://github.com/jetkvm/kvm.git
synced 2025-09-16 08:38:14 +00:00
Cleanup various shell linting issues * Use `/usr/bin/env` consistently for better platform compatibility. * SC2317 (info): Command appears to be unreachable. * SC2002 (style): Useless cat. Signed-off-by: SuperQ <superq@gmail.com>
20 lines
677 B
Bash
Executable File
20 lines
677 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Check if an IP address was provided as an argument
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: $0 <JetKVM IP Address>"
|
|
exit 1
|
|
fi
|
|
|
|
ip_address="$1"
|
|
|
|
# Print header
|
|
echo "┌──────────────────────────────────────┐"
|
|
echo "│ JetKVM Development Setup │"
|
|
echo "└──────────────────────────────────────┘"
|
|
|
|
# Set the environment variable and run Vite
|
|
echo "Starting development server with JetKVM device at: $ip_address"
|
|
sleep 1
|
|
JETKVM_PROXY_URL="ws://$ip_address" npx vite dev --mode=device
|