14 lines
333 B
Bash
Executable File
14 lines
333 B
Bash
Executable File
#! /bin/bash
|
|
|
|
if [[ $1 == "version" ]]
|
|
then
|
|
if [[ $2 == "pika-rocm-meta" ]]
|
|
then
|
|
apt-cache show rocm-core | grep Version: | cut -d":" -f2 | head -n1
|
|
else
|
|
apt-cache show $2 | grep Version: | cut -d":" -f2 | head -n1
|
|
fi
|
|
elif [[ $1 == "description" ]]
|
|
then
|
|
apt-cache show $2 | grep 'Description*' | cut -d":" -f2 | head -n1
|
|
fi |