Skill downloader - bash HTTP server using socat
This commit is contained in:
24
scripts/autorun.sh
Normal file
24
scripts/autorun.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user