Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
f310d757
Commit
f310d757
authored
Aug 11, 2016
by
Adam Jimerson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch from if -> case for BSD package counts
Signed-off-by:
Adam Jimerson
<
vendion@gmail.com
>
parent
01ce345c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
neofetch
neofetch
+12
-10
No files found.
neofetch
View file @
f310d757
...
...
@@ -695,16 +695,18 @@ getpackages () {
;;
"
BSD
")
# PacBSD has both pacman and pkg, but only pacman is used
if [[ "
$distro
" == "
PacBSD
"* ]]; then
packages="
$(
pacman
-Qq
--color
never |
wc
-l
)
"
else
if type -p pkg_info >/dev/null 2>&1; then
packages="
$(
pkg_info |
wc
-l
)
"
elif type -p pkg >/dev/null 2>&1; then
packages="
$(
pkg info |
wc
-l
)
"
fi
fi
case "
$distro
" in
# PacBSD has both pacman and pkg, but only pacman is used
"
PacBSD
"*) packages="
$(
pacman
-Qq
--color
never |
wc
-l
)
" ;;
*)
if type -p pkg_info >/dev/null 2>&1; then
packages="
$(
pkg_info |
wc
-l
)
"
elif type -p pkg >/dev/null 2>&1; then
packages="
$(
pkg info |
wc
-l
)
"
fi
;;
esac
;;
"
Windows
")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment