mirror of
https://github.com/kazhala/dotbare
synced 2024-11-19 15:25:46 +00:00
fix finit
This commit is contained in:
parent
32e6d0099f
commit
6d71dfbbb3
@ -64,6 +64,7 @@ if [[ -z "${remote_url}" ]]; then
|
|||||||
config --local status.showUntrackedFiles no
|
config --local status.showUntrackedFiles no
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
[[ ! -d "${DOTBARE_TREE}" ]] && mkdir -p "${DOTBARE_TREE}"
|
||||||
cd "${DOTBARE_TREE}"
|
cd "${DOTBARE_TREE}"
|
||||||
if [[ -f ".gitignore" ]]; then
|
if [[ -f ".gitignore" ]]; then
|
||||||
pattern=$(basename "${DOTBARE_DIR}")
|
pattern=$(basename "${DOTBARE_DIR}")
|
||||||
|
@ -8,6 +8,10 @@ setup() {
|
|||||||
|
|
||||||
teardown() {
|
teardown() {
|
||||||
unset confirm
|
unset confirm
|
||||||
|
if [[ "${DOTBARE_DIR}" == "$HOME/.local/share/dotbare_test/.cfg" ]] \
|
||||||
|
&& [[ "${DOTBARE_TREE}" == "$HOME/.local/share/dotbare_test" ]]; then
|
||||||
|
rm -rf "${DOTBARE_TREE}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
help() {
|
help() {
|
||||||
@ -37,6 +41,7 @@ migration() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@test "migration" {
|
@test "migration" {
|
||||||
|
[[ -d "${DOTBARE_DIR}" ]] && rm -rf "${DOTBARE_DIR}"
|
||||||
run migration
|
run migration
|
||||||
[ "${status}" -eq 0 ]
|
[ "${status}" -eq 0 ]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user