fix js8call

This commit is contained in:
David Young
2026-05-19 11:07:02 -06:00
parent 68dd17f712
commit 5b24401407
2 changed files with 6 additions and 4 deletions

View File

@@ -85,26 +85,27 @@ check_binaries() {
check_compiled() {
echo ""
echo "=== compile.conf ==="
local app="" version="" git_url="" wget_url=""
local app="" name="" version="" git_url="" wget_url=""
while IFS= read -r line || [ -n "$line" ]; do
[[ -z "$line" || "$line" == \#* ]] && continue
if [[ "$line" =~ ^\[(.+)\]$ ]]; then
check_app "$app" "$version" "$git_url" "$wget_url"
app="${BASH_REMATCH[1]}" version="" git_url="" wget_url=""
check_app "${name:-$app}" "$version" "$git_url" "$wget_url"
app="${BASH_REMATCH[1]}" name="" version="" git_url="" wget_url=""
continue
fi
local key="${line%%=*}" value="${line#*=}"
case "$key" in
name) name="$value" ;;
version) version="$value" ;;
git) git_url="$value" ;;
wget) wget_url="$value" ;;
esac
done < "$COMPILE_CONF"
check_app "$app" "$version" "$git_url" "$wget_url"
check_app "${name:-$app}" "$version" "$git_url" "$wget_url"
}
# --- Main ---