2023-01-02 17:47:31 +05:30
|
|
|
#!/bin/bash
|
2023-10-24 20:03:59 +05:30
|
|
|
|
2023-01-02 17:47:31 +05:30
|
|
|
# Copyright © 2021 Aravinth Manivannan <realaravinth@batsense.net>
|
2023-10-24 20:03:59 +05:30
|
|
|
# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
2023-01-02 17:47:31 +05:30
|
|
|
|
|
|
|
check_arg(){
|
|
|
|
if [ -z $1 ]
|
|
|
|
then
|
|
|
|
help
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
match_arg() {
|
|
|
|
if [ $1 == $2 ] || [ $1 == $3 ]
|
|
|
|
then
|
|
|
|
return 0
|
|
|
|
else
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|