added body to the git_remove_module() function(untested rn).

This commit is contained in:
jakeg00dwin 2024-03-02 11:06:28 -08:00
parent 84e3385105
commit eea9f714cb
1 changed files with 18 additions and 1 deletions

19
otto.sh
View File

@ -65,7 +65,24 @@ git_add_module () {
git_remove_module () { git_remove_module () {
echo "unfinished" local basename="$1"
read -p "Auto del from git?(y/n):" CHOICE
if [ "${CHOICE}" -eq "n" ]; then
echo "not being removed!"
return 0
fi
modsrc_dir="./src/${basename}"
modtest_dir="./tests/${basename}"
# Now we add the new files to the git tracked files
git rm -r ${modsrc_dir}/*
git rm -r ${modsrc_dir}
git rm -r ${modtest_dir}/*
git rm -r ${modtest_dir}
git rm -r ./src/CMakeLists.txt
git rm -r ./tests/CMakeLists.txt
} }