f3-rs/scripts/lib.sh

24 lines
396 B
Bash
Raw Normal View History

#!/bin/bash
2023-10-24 20:03:59 +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
check_arg(){
if [ -z $1 ]
then
help
exit 1
fi
}
match_arg() {
if [ $1 == $2 ] || [ $1 == $3 ]
then
return 0
else
return 1
fi
}