Skip to content

Commit

Permalink
Updated ghostbsd-version with the latest change
Browse files Browse the repository at this point in the history
  • Loading branch information
ericbsd committed Oct 14, 2023
1 parent 755d90c commit 0d8e0a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bin/ghostbsd-version/ghostbsd-version.1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Print the version FreeBSD OS.
.It Fl k
Print the version of the installed kernel.
.It Fl o
Print the version of the installed os-generic-userland-base.
Print the version of the installed os-generic-userland-base package.
.It Fl v
Print the version of GhostBSD.
.El
Expand Down
8 changes: 2 additions & 6 deletions bin/ghostbsd-version/ghostbsd-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,8 @@ kernel_version() {
}

ghostbsd_version() {
if [ -f "/etc/version" ] ; then
version=$(cat /etc/version)
printf "%s\n" "$version"
else
pkg query '%v' os-generic-userland-base
fi
version=$(cat /etc/version)
printf "%s\n" "$version"
}

freebsd_version() {
Expand Down

0 comments on commit 0d8e0a3

Please sign in to comment.