Skip to content

Commit

Permalink
fix for OS Error around get_apt_list.sh not existing
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebot committed Dec 4, 2022
1 parent 2069ec7 commit cbba725
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion onboardme/config/packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ brew:
apt:
emoji: "🙃"
commands:
list: "PWD/scripts/get_apt_list.sh"
list: "./scripts/get_apt_list.sh"
update: "sudo apt-get update -y"
upgrade: "sudo apt-get upgrade -y"
install: "sudo apt-get install -y "
Expand Down
5 changes: 0 additions & 5 deletions onboardme/pkg_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,6 @@ def run_pkg_mngrs(pkg_mngrs=[], pkg_groups=[]):

# run the list command for the given package manager
list_cmd = pkg_cmds['list']

# manually expanding, b/c there's not good way 2 do fstring via yml
if pkg_mngr == 'apt':
list_cmd = path.join(PWD, list_cmd.replace("PWD/", ""))

list_pkgs = subproc([list_cmd], quiet=True)

if list_pkgs:
Expand Down
3 changes: 3 additions & 0 deletions onboardme/scripts/get_apt_list.sh
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
#!/bin/bash

# list apt packages by only their short name
apt list --installed | cut -d '/' -f 1
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 = "0.15.14_a1"
version = "0.15.14"
description = "An onboarding tool to install dot files and packages including a default mode with sensible defaults to run on most computers running Debian based distros or macOS."
authors = ["Jesse Hitch <[email protected]>"]
license = "AGPL-3.0-or-later"
Expand Down

0 comments on commit cbba725

Please sign in to comment.