added body to the git_remove_module() function(untested rn).
This commit is contained in:
parent
84e3385105
commit
eea9f714cb
19
otto.sh
19
otto.sh
|
@ -65,7 +65,24 @@ git_add_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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue