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
495a9fef
Commit
495a9fef
authored
Sep 02, 2018
by
Muhammad Herdiansyah
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disk [OpenBSD]: Detect df version through usual df check instead of making a special if uname check
parent
2c4fb881
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
neofetch
neofetch
+1
-1
No files found.
neofetch
View file @
495a9fef
...
@@ -3076,6 +3076,7 @@ get_disk() {
...
@@ -3076,6 +3076,7 @@ get_disk() {
case "$df_version" in
case "$df_version" in
*"IMitv"*) df_flags=(-P -g) ;; # AIX
*"IMitv"*) df_flags=(-P -g) ;; # AIX
*"befhikm"*) df_flags=(-P -k) ;; # IRIX
*"befhikm"*) df_flags=(-P -k) ;; # IRIX
*"hiklnP"*) df_flags=(-h) ;; # OpenBSD
*"Tracker"*) # Haiku
*"Tracker"*) # Haiku
err "Your version of df cannot be used due to the non-standard flags"
err "Your version of df cannot be used due to the non-standard flags"
...
@@ -3090,7 +3091,6 @@ get_disk() {
...
@@ -3090,7 +3091,6 @@ get_disk() {
if [[ "$uname" == "OpenBSD" ]]; then
if [[ "$uname" == "OpenBSD" ]]; then
# On OpenBSD you can't use df against a /dev/... unless being root or
# On OpenBSD you can't use df against a /dev/... unless being root or
# in the 'operator' group. Making a separate disks array creation.
# in the 'operator' group. Making a separate disks array creation.
df_flags=(-h)
# building an AWK regexp
# building an AWK regexp
disk_re="${disk_show[*]:-/}"
disk_re="${disk_show[*]:-/}"
disk_re="${disk_re// /\|}"
disk_re="${disk_re// /\|}"
...
...
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