if ! $(fsfreeze -f $(dirname "$outfile") 2>/dev/null && fsfreeze -u $(dirname "$outfile") 2>/dev/null); then shellcheck says "Remove surrounding $() to avoid executing output". I'm not a bash expert and I'm not sure it's right, but I thought you'd want to know.