aboutsummaryrefslogtreecommitdiff
path: root/lib/arg_processing.sh
blob: d8fb92cafbf515d828ecc815f48b55b3741ceaa6 (plain)
1
2
3
4
5
6
7
8
9
#! Check script arguments.

check_arg_side() {
	local side="$1"		
	if ! [ "$side" ==  "left" -o "$side" == "right" ]; then
		echo "Argument must be must be the side to handle {left, right} and not \"${side}\"."
    	exit 1
	fi
}