Merge pull request #98 from mTvare6/main

macOS fixes for #81
This commit is contained in:
TheDarkBug 2021-05-20 22:55:21 +02:00 committed by GitHub
commit 5aa8bae78a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View file

@ -4,4 +4,5 @@ uwufetch
*.vscode
*.gz
*.1
.prettierrc
.DS_STORE
.prettierrc

View file

@ -223,7 +223,7 @@ int pkgman()
#ifdef __APPLE__
// we use a completely different struct because some commands in the other actually work in mac os, but they are not what you would expect (try running "apt"), but still doesn't work, maybe because of popen()
struct package_manager pkgmans[] = {
{"brew list 2>/dev/null | wc -l | sed \"s/ //g\" && touch test", "(brew)"}};
{"ls $(brew --cellar)| wc -l | sed \"s/ //g\" && touch test", "(brew)"}};
#else
struct package_manager pkgmans[] = {
{"apt list --installed 2> /dev/null | wc -l", "(apt)"},