Update 1 file: bootstrap.sh
This commit is contained in:
@@ -25,6 +25,7 @@ check_all() {
|
|||||||
done
|
done
|
||||||
if [[ ${#missing[@]} -eq 0 ]]; then
|
if [[ ${#missing[@]} -eq 0 ]]; then
|
||||||
info "all tools present" >&2
|
info "all tools present" >&2
|
||||||
|
update
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
echo "${missing[@]}"
|
echo "${missing[@]}"
|
||||||
@@ -149,6 +150,7 @@ else
|
|||||||
git clone --depth=1 "$REPO_URL" "$TARGET_DIR"
|
git clone --depth=1 "$REPO_URL" "$TARGET_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
update() {
|
||||||
dotstate activate
|
dotstate activate
|
||||||
|
|
||||||
sed -i.bak 's/^repo_mode\s*=\s*".*"/repo_mode = "Local"/' ~/.config/dotstate/config.toml || echo 'repo_mode = "Local"' >> ~/.config/dotstate/config.toml
|
sed -i.bak 's/^repo_mode\s*=\s*".*"/repo_mode = "Local"/' ~/.config/dotstate/config.toml || echo 'repo_mode = "Local"' >> ~/.config/dotstate/config.toml
|
||||||
@@ -156,6 +158,8 @@ sed -i.bak 's/^repo_mode\s*=\s*".*"/repo_mode = "Local"/' ~/.config/dotstate/con
|
|||||||
dotstate doctor --fix
|
dotstate doctor --fix
|
||||||
dotstate activate
|
dotstate activate
|
||||||
|
|
||||||
|
exec zsh
|
||||||
|
|
||||||
info "done"
|
info "done"
|
||||||
|
|
||||||
exec zsh
|
}
|
||||||
Reference in New Issue
Block a user