restored package_updated

This commit is contained in:
James Barnett 2018-01-19 11:02:12 -05:00
parent 1d02860306
commit 7bff82da28
No known key found for this signature in database
GPG key ID: E4B5E45AA3B8C5C3

View file

@ -60,6 +60,18 @@ truncate_description() {
fi
}
package_updated() {
check="$1"
for x in ${packages[@]}; do
echo $x
if [[ "$x" == "$check" ]]; then
echo "yes"
return
fi
done
echo "no"
}
trap 'traperror ${LINENO} $? "$BASH_COMMAND" $BASH_LINENO "${FUNCNAME[@]}"' ERR
trap trapkill SIGTERM SIGINT