Skip to content

Commit

Permalink
fix weird syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Un1q32 committed May 1, 2024
1 parent 9148618 commit c3ce92d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pfetch
Original file line number Diff line number Diff line change
Expand Up @@ -223,14 +223,14 @@ get_os() {
#
# On first run, this function displays _nothing_, only on the second
# invocation is 'log()' called.
[ -n "$distro" ] && {
if [ -n "$distro" ]; then
if [ -n "$PF_OS" ]; then
log os "$PF_OS" >&6
else
log os "$distro" >&6
fi
return
}
fi

case $os in
(Linux*|GNU*)
Expand Down

0 comments on commit c3ce92d

Please sign in to comment.