Plasmmer/Web3Updater

jq sync issues

danimesq opened this issue · 9 comments

jq sync issues

Reference: jqlang/jq#2344

Appeared again, this time with:

Web3Updater Version: v2 / Patch: 0

Checking for new updates...
Updating Web3Updater...
Installing update 1...
Installing update 2...
Installing update 3...
{
"patch_at": 2,
"cid_at": ""
}
Installing update 4...
/usr/lib/web3updater/./updates.sh: 42: [: =: unexpected operator
/usr/lib/web3updater/./sample_updates_3-5.sh: 28: [: -ge: unexpected operator

After running again:

Web3Updater Version: v2 / Patch:

Checking for new updates...
/usr/lib/web3updater/./sample_updates_3-5.sh: 28: [: -ge: unexpected operator
/usr/lib/web3updater/./sample_updates_3-5.sh: 4: [: -ge: unexpected operator
/usr/lib/web3updater/web3updater: line 76: [: : integer expression expected
UP-TO-DATE like a breeze! No new updates to install, yet.
/usr/lib/web3updater/./sample_updates_3-5.sh: 28: [: -ge: unexpected operator

New attempt to fix: f2bea83

Appeared again:

Installing update 4...
./updates.sh: 42: [: =: unexpected operator
/usr/lib/web3updater/./sample_updates_3-5.sh: 32: [: -ge: unexpected operator

In:

if [ $(jq -r '.patch_at' /usr/lib/web3updater/update.json) -ge 4 ]; then (sample_updates_3-5.sh)

and:

if [ $(jq -r '.patch_at' /usr/lib/web3updater/update.json) = 4 ]; then (updates.sh)

Another attempt in: f65c81a

But, again:

Installing update 5...
/usr/lib/web3updater/./sample_updates_3-5.sh: 32: [: -ge: unexpected operator

In:

if [ $(jq -r '.patch_at' /usr/lib/web3updater/update.json) -ge 4 ]; then (sample_updates_3-5.sh)

Here we go again

Fixing this bug is a top priority now.

Otherwise I'm not able to launch the beta of W3U v2.