23 lines
396 B
Bash
Executable file
23 lines
396 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Copyright © 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
|
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
check_arg(){
|
|
if [ -z $1 ]
|
|
then
|
|
help
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
match_arg() {
|
|
if [ $1 == $2 ] || [ $1 == $3 ]
|
|
then
|
|
return 0
|
|
else
|
|
return 1
|
|
fi
|
|
}
|