glacier-old/glacier-query.sh

11 lines
252 B
Bash
Raw Normal View History

2022-03-09 17:01:26 -05:00
#!/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
2022-03-10 12:29:47 -05:00
if [ "$?" != "0" ]; then
echo "[ X ] Package $input not found!" 1>&2
exit 1
fi