pika-kernel-manager/data/scripts/generate_package_info.sh

9 lines
212 B
Bash
Raw Permalink Normal View History

#! /bin/bash
if [[ $1 == "version" ]]
then
2024-08-31 04:10:09 +02:00
apt-cache show $2 | grep Version: | cut -d":" -f2 | head -n1
elif [[ $1 == "description" ]]
then
2024-08-31 04:10:09 +02:00
apt-cache show $2 | grep 'Description*' | cut -d":" -f2 | head -n1
fi