#!/bin/sh # Available Snap updates command -v snap > /dev/null 2>&1 || { echo "snap not found" >&2; exit 1; } snap refresh --list 2>&1