#!/bin/sh dir="$HOME/.local/share/wcli" file="$dir/$(date +info_%F_%H-%M.json)" country="" mkdir -p "$dir" || exit 1 curl "wttr.in/${country}?format=j1" -o "$file" || exit 1 wcli-gen "$file"