#!/bin/bash
# Fake pass script for testing run_cmd and passwd
case "$2" in
    "test/secret") echo "password123";;
    "test/multiline") printf "line1\nline2\nline3";;
    "test/missing") echo "Error: not found" >&2; exit 1;;
    *) echo "Error: unknown key $2" >&2; exit 1;;
esac
