Move trailing comma for manifest list.

This commit is contained in:
awalsh128 2021-10-22 00:16:17 -07:00
parent 58be009328
commit b80ada0329

View file

@ -44,7 +44,7 @@ manifest_filepath="$cache_dir/manifest.log"
echo -n "Writing package manifest to $manifest_filepath..."
manifest=
for package in $packages; do
manifest=$manifest,$package:$(dpkg -s $package | grep Version | awk '{print $2}')
manifest=$manifest$package:$(dpkg -s $package | grep Version | awk '{print $2}'),
done
# Remove trailing comma.
echo ${manifest:0:-1} > $manifest_filepath