Files
skill-downloader/scripts/autorun.sh

25 lines
534 B
Bash

#!/bin/bash
set -e
# Install dependencies
install_deps() {
local missing=""
command -v git &>/dev/null || missing="$missing git"
command -v curl &>/dev/null || missing="$missing curl"
command -v jq &>/dev/null || missing="$missing jq"
command -v socat &>/dev/null || missing="$missing socat"
if [ -n "$missing" ]; then
echo "Installing:$missing"
apt-get update
apt-get install -y $missing
fi
echo "Dependencies ready"
}
install_deps
echo "Skill downloader setup complete"