pika-kernel-manager/data/scripts/generate_package_info.sh
Ward from fusion-voyager-3 4d9a1c39fb Un fedoraize
2024-08-31 05:10:09 +03:00

9 lines
212 B
Bash
Executable File

#! /bin/bash
if [[ $1 == "version" ]]
then
apt-cache show $2 | grep Version: | cut -d":" -f2 | head -n1
elif [[ $1 == "description" ]]
then
apt-cache show $2 | grep 'Description*' | cut -d":" -f2 | head -n1
fi