#!/bin/sh # shellcheck shell=dash set -u # Check if it's a valid file check_file() { local target="$1" if [ ! -f "$target" ]; then cat <