Module: kamailio
Branch: master
Commit: b21f14b3fb1d4d553f6c07496a09003c049493fe
URL: 
https://github.com/kamailio/kamailio/commit/b21f14b3fb1d4d553f6c07496a09003c049493fe

Author: Xenofon Karamanos <x...@gilawa.com>
Committer: Xenofon Karamanos <x...@gilawa.com>
Date: 2025-08-19T17:13:50Z

cmake: Use `sh` instead of `bash

---

Modified: cmake/dbschema-version-postprocess.sh
Modified: cmake/dbschema.cmake
Modified: src/CMakeLists.txt
Modified: utils/kamctl/generate_version_create_mongo.sh

---

Diff:  
https://github.com/kamailio/kamailio/commit/b21f14b3fb1d4d553f6c07496a09003c049493fe.diff
Patch: 
https://github.com/kamailio/kamailio/commit/b21f14b3fb1d4d553f6c07496a09003c049493fe.patch

---

diff --git a/cmake/dbschema-version-postprocess.sh 
b/cmake/dbschema-version-postprocess.sh
index a72305537ec..47f1c581531 100755
--- a/cmake/dbschema-version-postprocess.sh
+++ b/cmake/dbschema-version-postprocess.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
 
 # This script is executed by CMake after db_berkeley and db_text schema files 
are generated.
 # It appends the last line of each generated file (except 'version')
diff --git a/cmake/dbschema.cmake b/cmake/dbschema.cmake
index a45e7e85470..d30014cbaaa 100644
--- a/cmake/dbschema.cmake
+++ b/cmake/dbschema.cmake
@@ -200,7 +200,7 @@ if(TARGET dbschema_db_mongodb)
     TARGET dbschema_db_mongodb
     POST_BUILD
     COMMAND
-      bash generate_version_create_mongo.sh
+      sh generate_version_create_mongo.sh
       
"${CMAKE_BINARY_DIR}/utils/kamctl/db_mongodb/kamailio/version-create.mongo"
       "${CMAKE_BINARY_DIR}/utils/kamctl/db_mongodb/kamailio"
     WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/utils/kamctl
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 82d486f13dd..a9ca7784d6c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -38,7 +38,7 @@ if(USE_GIT
   )
 
   execute_process(
-    COMMAND bash -c "${GIT_EXECUTABLE} diff-index --name-only HEAD"
+    COMMAND sh -c "${GIT_EXECUTABLE} diff-index --name-only HEAD"
             " | grep -vE 'Makefile|CMakeLists.txt'"
     WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
     OUTPUT_VARIABLE GIT_DIFF_OUTPUT
diff --git a/utils/kamctl/generate_version_create_mongo.sh 
b/utils/kamctl/generate_version_create_mongo.sh
index 47048cc0962..9e95ab14df0 100644
--- a/utils/kamctl/generate_version_create_mongo.sh
+++ b/utils/kamctl/generate_version_create_mongo.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env sh
 
 OUTPUT_FILE="$1"
 JSON_DIR="$2"
@@ -15,4 +15,4 @@ for FILE in "$JSON_DIR"/*.json; do
       echo "db.getCollection(\"version\").insert({ table_name: \"$FN\", 
table_version: NumberInt($VN) });" >> "$OUTPUT_FILE"
     fi
   fi
-done
\ No newline at end of file
+done

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to