updated to use in place sed editing

This commit is contained in:
jakeg00dwin 2024-03-22 11:35:40 -07:00
parent 0288b6eff3
commit 41950059a6
1 changed files with 2 additions and 2 deletions

View File

@ -38,8 +38,8 @@ add_module_to_cmakes () {
remove_module_from_cmakes () {
local basename="$1"
sed "s/^.*add_subdirectory(${basename}).*$//g" ./src/CMakeLists.txt > ./src/CMakeLists.txt
sed "s/^.*add_subdirectory(${basename}).*$//g" ./tests/CMakeLists.txt > ./tests/CMakeLists.txt
sed -i'' "s/^.*add_subdirectory(${basename}).*$//g" ./src/CMakeLists.txt
sed -i'' "s/^.*add_subdirectory(${basename}).*$//g" ./tests/CMakeLists.txt
}
git_add_module () {