Files
DocProdPipeline-Client/Framework-Includes/PreflightCheck.sh
ReachableCEO 0c1937f5d7 Squashed 'vendor/git.knownelement.com/KNEL/KNELShellFramework/' content from commit 5ecde81
git-subtree-dir: vendor/git.knownelement.com/KNEL/KNELShellFramework
git-subtree-split: 5ecde81ce441d5802fd7e7e91a441e34f327f457
2025-07-14 12:06:51 -05:00

32 lines
615 B
Bash

#!/bin/bash
function PreflightCheck()
{
#Common things I check for in the scripts I write.
#export curr_host="$(hostname)"
#export curr_user="$USER"
#export host_check="$(echo $curr_host | grep -c <desired hostname>)"
#export user_check="$(echo $curr_user | grep -c <desired username>)"
#if [ $host_check -ne 1 ]; then
# echo "Must run on <desired host>."
# error_out
#fi
#if [ $user_check -ne 1 ]; then
# echo "Must run as <desired user>."
# error_out
#fi
#if [ "$ARG_COUNT" -ne <the right num> ]; then
# help
# error_out
#fi
#Your additional stuff here...
echo "All checks passed...."
}