No permitir ninguna opción más tras construir y crear bd

Signed-off-by: somebody_master <somebody_master@somebodyserver.mooo.com>
This commit is contained in:
Somebody Master 2023-02-12 14:16:10 +01:00
parent f20e858c2e
commit 58efe4ec04
Signed by: somebody_master
GPG Key ID: 78315CFDF0B25505

View File

@ -3,6 +3,7 @@
function clean() {
cd gdextension || return 1
scons --clean
cd ..
}
function build() {
@ -12,8 +13,8 @@ function build() {
}
function build_db() {
clean
cd gdextension || return 1
scons --clean
bear -- scons
if [ ! -d ../build ]; then
@ -32,8 +33,8 @@ function build_db() {
while getopts "bdch" flag; do
case "$flag" in
d) build_db ;;
b) build ;;
d) build_db && exit 0 ;;
b) build && exit 0 ;;
c) clean ;;
h) echo "Use -b for build , -d for generating a compile_commands.json or -c for cleaning" ;;
?)