theniceboy/tmux/tmux-powerline/lib/arg_processing.sh
2020-05-07 13:42:03 -04:00

9 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
}