Skip to content

Commit

Permalink
fix download of packages.yml if you don't have one
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed May 20, 2023
1 parent 2a7e8ec commit 334c20d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions onboardme/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


default_dotfiles = ("https://raw.githubusercontent.com/jessebot/dot_files/"
"main/.config/onboardme/config.yml")
"main/.config/onboardme/")


def load_cfg(config_file='config.yml') -> dict:
Expand All @@ -54,7 +54,7 @@ def load_cfg(config_file='config.yml') -> dict:
if not path.exists(config_full_path):
Path(config_dir).mkdir(parents=True, exist_ok=True)
# downloads a default config file from default dot files
wget.download(default_dotfiles, config_full_path)
wget.download(default_dotfiles + config_file, config_full_path)

with open(config_full_path, 'r') as yaml_file:
return yaml.safe_load(yaml_file)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "onboardme"
version = "1.1.5"
version = "1.1.6"
description = "Install dot files and packages, including a base mode with sensible defaults to run on most computers running Debian based distros or macOS."
authors = [
"Jesse Hitch <[email protected]>",
Expand Down

0 comments on commit 334c20d

Please sign in to comment.