Skip to content

add random smaller updates to updater #3

Description

@swetoast
#!/bin/bash

declare -A update_commands=(
    ["pciids"]="update-pciids"
    ["smart_drivedb"]="update-smart-drivedb"
)

check_and_update() {
    local name=$1
    local command=${update_commands[$name]}
    
    if $command | grep -q "is already up to date"; then
    else
        echo "Updating $name..."
        $command
    fi
}

check_and_update "pciids"
check_and_update "smart_drivedb"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions