glacier-old/scripts/glacier-query.sh

12 lines
330 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-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