feat: add chmod

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
This commit is contained in:
Xinwei Xiong(cubxxw-openim)
2023-07-07 21:27:07 +08:00
parent 905c55caad
commit 049ae6eb80
34 changed files with 156 additions and 144 deletions
+12 -6
View File
@@ -13,14 +13,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#Include shell font styles and some basic information
OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
source ./style_info.cfg
source ./path_info.cfg
source ./function.sh
# Include necessary files
source "$(dirname "${BASH_SOURCE[0]}")/../scripts/function"
# Include specific functions and variables
source "$(dirname "${BASH_SOURCE[0]}")/../scripts/style_info.cfg" \
"$OPENIM_ROOT/scripts/path_info.cfg"
bin_dir="$OPENIM_ROOT/bin"
logs_dir="$OPENIM_ROOT/logs"
sdk_db_dir="$OPENIM_ROOT/sdk/db/"
bin_dir="../bin"
logs_dir="../logs"
sdk_db_dir="../db/sdk/"
#Automatically created when there is no bin, logs folder
if [ ! -d $bin_dir ]; then
mkdir -p $bin_dir