mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-16 10:39:51 +00:00
Circumvent lock from pkg_* tools
This commit is contained in:
1 parent
8cb6277994
commit
ce4b353096
1 file changed
+1
-1
+1
-1
@@ -9,7 +9,7 @@ host="$(hostname)"
|
||||
os="$(uname -sr)"
|
||||
kernel="$(uname -v)"
|
||||
uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')"
|
||||
packages="$(pkg_info -A | wc -l | sed -e 's/^[ \t]*//')"
|
||||
packages="$(ls -d /var/db/pkg/* | wc -l | sed -e 's/^[ \t]*//')"
|
||||
shell="$(basename ${SHELL})"
|
||||
if [ -z "${WM}" ]; then
|
||||
WM="$(tail -n 1 "${HOME}/.xinitrc" | cut -d ' ' -f 2)"
|
||||
|
||||
Reference in new issue
Block a user