Browse Source

Push

master
Alarig Le Lay 4 years ago
parent
commit
5068f20983
  1. 15
      automatic_pkg_upgrade.sh

15
automatic_pkg_upgrade.sh

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
#!/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}
Loading…
Cancel
Save