glacier-old/scripts/glacier-query.sh
everest-linux e55679d379 0.7rc
2022-04-12 16:38:01 +00:00

12 lines
290 B
Bash

#!/bin/sh
# glacier-query
# Script used to query packages on the system
echo "[ ? ] 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
exit 1
fi