You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
217 B
Bash

#!/bin/sh
TMP_FILE=$(mktemp)
pkg upgrade -n -q > ${TMP_FILE}
if [ "$(cat ${TMP_FILE})" != "" ]; then
if [ "$(grep REMOVED ${TMP_FILE})" = "" ]; then
pkg upgrade -y
else
cat ${TMP_FILE}
fi
fi
rm ${TMP_FILE}