CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/bash-script-toolkit

Complete bash-script toolkit with generation and validation capabilities

97

Quality

97%

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

SecuritybySnyk

Risky

Do not use without reviewing

Overview
Quality
Evals
Security
Files

task.mdvalidator/evals/scenario-4/

Task: Full Validation Report for a Multi-Issue Bash Script

Validate the following script using the bash-script-validator skill workflow. Produce a complete validation report following the exact response format from the skill: for each issue found, include (a) the problematic code, (b) the issue explanation with ShellCheck code, (c) the corrected code, and (d) why the fix improves the script. End with a summary section showing error/warning/info counts and a final PASSED or FAILED verdict.

#!/usr/bin/env bash

LOG_FILE=/var/log/app.log
CONFIG=$1

parse_config() {
    grep -r "setting=" $CONFIG | while read line; do
        key=$(echo $line | cut -d= -f1)
        value=$(echo $line | cut -d= -f2)
        export $key=$value
    done
}

write_log() {
    echo "[$(date)] $message" >> $LOG_FILE
}

main() {
    parse_config

    if [ $CONFIG == "" ]; then
        echo "No config provided"
        exit 1
    fi

    write_log
}

main

tile.json