Update glacier-query.sh
This commit is contained in:
parent
143aa68687
commit
f65684c0fd
@ -2,10 +2,10 @@
|
||||
# glacier-query
|
||||
# Script used to query packages on the system
|
||||
|
||||
echo "[ ? ] Enter package name:" && read input
|
||||
printf "\033[1;34m [ ? ] \033[m Enter package name: " && read input
|
||||
cat /etc/glacier/pkginfo/$input-pkginfo.json
|
||||
cat /var/log/glacier/$input.timestamp
|
||||
if [ "$?" != "0" ]; then
|
||||
echo "[ X ] Package $input not found!" 1>&2
|
||||
printf "\033[1;31m [ $error ] \033[m Package not found. " 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user