10 lines
221 B
Bash
10 lines
221 B
Bash
#! Check script arguments.
|
|
|
|
check_arg_side() {
|
|
local side="$1"
|
|
if ! [ "$side" == "left" -o "$side" == "right" ]; then
|
|
echo "Argument must be the side to handle {left, right} and not \"${side}\"."
|
|
exit 1
|
|
fi
|
|
}
|