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