glacier-old/scripts/glacier-query.sh

16 lines
378 B
Bash
Raw Normal View History

2022-04-12 12:38:01 -04:00
#!/bin/sh
# glacier-query
# Script used to query packages on the system
2022-05-02 12:41:49 -04:00
# Glacier preloading
source /etc/glacier.conf
2022-04-20 15:44:06 -04:00
printf "\033[1;34m [ ? ] \033[m Enter package name: " && read input
2022-04-12 12:38:01 -04:00
cat /etc/glacier/pkginfo/$input-pkginfo.json
cat /var/log/glacier/$input.timestamp
if [ "$?" != "0" ]; then
2022-04-20 15:44:06 -04:00
printf "\033[1;31m [ $error ] \033[m Package not found. " 1>&2
2022-04-12 12:38:01 -04:00
exit 1
fi