Skip to content

Commit

Permalink
update bootstrapping order
Browse files Browse the repository at this point in the history
  • Loading branch information
ysdexlic committed Mar 10, 2021
1 parent 00fa80e commit 0fbc845
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Subheadings to categorize changes are `added, changed, deprecated, removed, fixe

## Unreleased

## 0.1.5
### fixed
- Fixed bootstrap running order, now runs after linking dotfiles.

## 0.1.4
### fixed
- Fixed release action not uploading artifacts.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dotm"
version = "0.1.4"
version = "0.1.5"
edition = "2018"
description = "Dotfile Manager"
license = "MIT"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ brew install ysdexlic/formulae/dot


- [x] Add bootstrapping feature (run bootstrap executables)
- [ ] Fix bootstrapping complaining when multiple dotfile dirs and one doesn't
have the bootstrap repo
- [ ] Add ability to have pre/post hooks
- [ ] Add ability to have host or tag specific files

Expand Down
8 changes: 4 additions & 4 deletions src/cmd/up.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ use std::path::Path;
use crate::utils;

pub fn link_dotfiles(should_bootstrap: bool) -> std::io::Result<()> {
if should_bootstrap {
utils::bootstrap()?;
}

let links = utils::get_links();

if links.is_err() {
Expand Down Expand Up @@ -43,6 +39,10 @@ pub fn link_dotfiles(should_bootstrap: bool) -> std::io::Result<()> {
symlink(&link_in, &link_out)?;
}

if should_bootstrap {
utils::bootstrap()?;
}

Ok(())
}

Expand Down

0 comments on commit 0fbc845

Please sign in to comment.