From bab334b928ca1a68e52ed4a7f8e688c87cfd0335 Mon Sep 17 00:00:00 2001 From: timerix Date: Fri, 9 Sep 2022 21:51:08 +0600 Subject: [PATCH] some fixes --- default.config | 2 +- init.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/default.config b/default.config index bab6f1b..bb9012f 100644 --- a/default.config +++ b/default.config @@ -40,7 +40,7 @@ case $TASK in LINKER_ARGS="-Wl,-soname,$SHARED_LIB_FILE" TASK_SCRIPT="cbuild/build_shared_lib.sh" ;; - build_shared_lib_dbg + build_shared_lib_dbg) C_ARGS="-O0 -g -fpic -shared" CPP_ARGS="$C_ARGS" LINKER_ARGS="-Wl,-soname,$SHARED_LIB_FILE" diff --git a/init.sh b/init.sh index a3e707b..53c04aa 100644 --- a/init.sh +++ b/init.sh @@ -19,9 +19,10 @@ if [ ! -f ".config" ]; then exit fi source .config + #version check if [ ! $CONFIG_VER -eq 2 ]; then - print "${RED}Your config version isn't correct" + print "${RED}Your config version isn't correct\n" while true; do print "${WHITE}Backup current config and create default one? (y/n) " read answ @@ -34,4 +35,4 @@ if [ ! $CONFIG_VER -eq 2 ]; then * ) print "${RED}incorrect answer\n";; esac done -fi \ No newline at end of file +fi