You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
307 B
22 lines
307 B
#!/bin/bash
|
|
|
|
bundle="$1"
|
|
|
|
if [ -z $bundle ]; then
|
|
echo "please input module path which you would delete"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ! -d $bundle ]]; then
|
|
echo "please input right module path"
|
|
exit 1
|
|
fi
|
|
|
|
git submodule deinit -f "$bundle"
|
|
|
|
git rm -rf "$bundle"
|
|
|
|
rm -rf .git/modules/$bundle
|
|
|
|
git status
|
|
|
|
|