From 07fc2644a237187dd4c5680e88f4adadbf533603 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Wed, 12 Aug 2015 12:06:23 -0600 Subject: Initial commit of the working files --- lib/arg_processing.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 lib/arg_processing.sh (limited to 'lib/arg_processing.sh') diff --git a/lib/arg_processing.sh b/lib/arg_processing.sh new file mode 100644 index 0000000..d8fb92c --- /dev/null +++ b/lib/arg_processing.sh @@ -0,0 +1,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 +} -- cgit v1.2.3