Skip to content

Commit

Permalink
fix: package description is always blank
Browse files Browse the repository at this point in the history
  • Loading branch information
gamemaker1 committed Jun 17, 2021
1 parent 746b88d commit 48fa414
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions source/yeet
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,10 @@ function print_package_summary {
pgpkeys=()

IFS="="
while read -r name value; do
key="$(echo $name | tr -d '[:space:]')"
while read -r key value; do
# Remove all spaces in the key and the leading space in the value
key="$(echo $key | tr -d '[:space:]')"
value="$(echo $value | awk '{$1=$1;print}')"
if [[ "$key" == "depends" ]]; then
# Remove version numbers
value="${value%>*}"
Expand Down Expand Up @@ -111,7 +113,7 @@ function print_package_summary {
printg "==> Package overview:"
printb " -> \e[0;33mName: $package_name\e[0m"
printb " -> \e[0;33mVersion: $package_ver\e[0m"
printb " -> \e[0;33mDescription: $package_description\e[0m"
printb " -> \e[0;33mDescription: $package_desc\e[0m"
printb " -> \e[0;33mUpstream URL: $url\e[0m"
printb " -> \e[0;33mLicense: $license\e[0m"
printb " -> \e[0;33mDependencies (to install):\e[0m"
Expand Down

0 comments on commit 48fa414

Please sign in to comment.