f3-rs/scripts/lib.sh
Aravinth Manivannan 18b849be6c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed
feat: init reuse.software
2023-10-24 20:03:59 +05:30

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
}