Skip to content

Commit

Permalink
v0.3.2 - Ignore opkg errors when listing updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tavinus committed Dec 10, 2018
1 parent c5eda9b commit f7ab2fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opkg-upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@


### Initialization
OPKGUPVERSION="0.3.1"
OPKGUPVERSION="0.3.2"
OPKGBIN="$(which opkg 2>/dev/null)"
SSMTPBIN="$(which ssmtp 2>/dev/null)"
BANNERSTRING="Simple OPKG Updater v$OPKGUPVERSION"
Expand Down Expand Up @@ -310,7 +310,7 @@ opkg_update() {
opkg_upgradable() {
message_starts "Getting upgradable packages list"
PACKS="$($OPKGBIN list-upgradable | sort | grep -v 'marked HOLD or PREFER')"
[ $? -eq 0 ] || rt_exception $'Error when trying list upgradable packages. Permissions?\n'
#[ $? -eq 0 ] || rt_exception $'Error when trying list upgradable packages. Permissions?\n'
#PACKS="$(cat pkg-example.txt)" # testing
if ! is_empty "$PACKS"; then
PACKS_NAMES="$(echo -ne "$PACKS" | awk '{ printf "%s ", $1 }')"
Expand Down

0 comments on commit f7ab2fc

Please sign in to comment.