mirror of
https://github.com/theniceboy/.config.git
synced 2026-01-11 02:42:36 +08:00
9 lines
221 B
Bash
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
|
|
}
|