#!/bin/sh -e # output version if exist version_path="/opt/netbox/cdist/version" if [ -f "$version_path" ]; then cat "$version_path"; fi