Update glacier-query.sh

This commit is contained in:
everest 2022-04-05 15:05:07 +00:00 committed by GitHub
parent 66c7e0beb8
commit de9dbf0918
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
echo "[ ? ] Enter package name:" && read input echo "[ ? ] Enter package name:" && read input
cat /etc/glacier/pkginfo/$input-pkginfo.json cat /etc/glacier/pkginfo/$input-pkginfo.json
cat /var/log/glacier/$input.timestamp
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "[ X ] Package $input not found!" 1>&2 echo "[ X ] Package $input not found!" 1>&2
exit 1 exit 1