View Single Post
death_jax's Avatar
Posts: 326 | Thanked: 122 times | Joined on Sep 2012 @ Italy
#6979
Originally Posted by Schturman View Post
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:~#
More user friendly output .
It is equally easy to manage via script than bool 0 or 1?