View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#6978
death_jax, I found solution for checking command in the tweak
instead:
Code:
dpkg -l aegisctl > /dev/null 2>&1; echo $?
we can use:
Code:
dpkg-query -W -f='${Status}\n' aegisctl | grep installed | awk '{print $3}' | head -1
The output we will get:
Code:
RM696-21-3_PR_001:~# dpkg-query -W -f='${Status}\n' aegisctl | grep installed | awk '{print $3}' | head -1
installed
RM696-21-3_PR_001:~#
or
Code:
RM696-21-3_PR_001:~# dpkg-query -W -f='${Status}\n' aegisctl | grep installed | awk '{print $3}' | head -1
not-installed
RM696-21-3_PR_001:~#