#!/bin/bash set -euo pipefail dev="${1:-}" exec /usr/bin/smartctl --json=co -a "/dev/$dev"