Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ cat debug.txt
- + : Eupatorium
- + cd Eupatorium
- ++ cat ../version.txt
- + VERSION=v2.73
- + LOGFILE=mffbot.log
- + OUTFILE=mffbottemp.html
- + COOKIEFILE=mffcookies.txt
- + FARMDATAFILE=farmdata.txt
- + LASTRUNFILE=lastrun.txt
- + STATUSFILE=isactive.txt
- + CFGFILE=config.ini
- + PIDFILE=bashpid.txt
- ++ which jq
- + JQBIN=/cygdrive/k/Documents/jq
- + USCRIPTURL=https://raw.githubusercontent.com/HackerHarry/mffbashbot/master/update.sh
- + UTMPFILE=/tmp/mffbot-update.sh
- + DONKEYCLAIMED=0
- + MFFUSER=Eupatorium
- + PAUSECORRECTEDAT=0
- + TIMEDELTA=0
- + CURRENTEPOCH=0
- + SKIPQUEUEUPDATE=0
- + TMPFILE=/tmp/Eupatorium-823
- ++ grep password config.ini
- ++ tr -d \'
- + MFFPASS='password = [REDACTED]'
- ++ grep server config.ini
- + MFFSERVER='server = 1'
- ++ grep lang config.ini
- ++ tr -d \'
- + MFFLANG='lang = pl'
- + set -- password = [REDACTED]
- + : [REDACTED]
- + MFFPASS=[REDACTED]
- + set -- server = 1
- + : 1
- + MFFSERVER=1
- + set -- lang = pl
- + : pl
- + MFFLANG=pl
- + case "$MFFLANG" in
- + DOMAIN=wolnifarmerzy.pl
- + aDIM_X='{"0":"0","1":"2","2":"2","3":"2","4":"2","5":"2","6":"2","7":"2","8":"2","9":"1","10":"1","11":"1","12":"1","13":"1","14":"1","15":"1","16":"1","17":"1","18":"1","19":"1","20":"1","21":"1","22":"1","23":"1","24":"1","25":"1","26":"1","27":"1","28":"1","29":"2","30":"1","31":"1","32":"1","33":"1","34":"1","35":"1","36":"2","37":"2","38":"1","39":"2","40":"2","41":"2","42":"2","43":"2","44":"1","91":"1","92":"1","93":"1","97":"1","45":"2","46":"1","47":"2","48":"2","49":"2","50":"1","51":"1","52":"2","53":"2","54":"2","55":"1","56":"2","57":"2","58":"2","59":"2","60":"2","61":"2","62":"2","63":"2","64":"2","65":"1","66":"2","67":"2","68":"1","69":"2","70":"2","71":"2","72":"2","73":"1","74":"1","75":"1","76":"2","77":"2","78":"2","79":"2","80":"2","81":"2","82":"2","83":"2","84":"2","85":"1","86":"1","87":"2","88":"2","89":"1","90":"2","94":"2","95":"2","96":"1","98":"2","99":"2","100":"2","101":"2","102":"2","103":"2","104":"1","105":"1","106":"2","107":"1","108":"2","109":"2","110":"1","111":"1","112":"1","113":"1","114":"2","115":"2","116":"1","117":"1","118":"1","119":"1","120":"1","121":"1","122":"1","123":"1","124":"1","125":"1","126":"1","127":"2","128":"2","129":"2","130":"1","131":"1","132":"1","133":"1","134":"1","135":"1","136":"1","137":"1","138":"1","139":"1","140":"1","141":"1","142":"1","143":"1","144":"1","145":"1","146":"1","147":"1","148":"1","149":"1","150":"1","151":"1","152":"1","153":"2","154":"2","155":"1","156":"1","157":"1","158":"2","159":"1","160":"1","161":"1","162":"1","163":"1","164":"1","165":"1","166":"1","167":"1","168":"1","169":"1","170":"1","171":"1","172":"1","173":"1","174":"1","175":"1","176":"1","177":"1","178":"1","179":"1","180":"1","181":"1","182":"1","183":"1","184":"1","185":"1","186":"1","187":"1","188":"1","189":"1","200":"1","201":"1","202":"1","203":"1","204":"1","205":"1","206":"1","207":"1","208":"1","209":"1","210":"1","211":"1","212":"1","213":"1","214":"1","215":"1","216":"1","217":"1","218":"1","219":"1","220":"1","221":"1","250":"1","251":"1","252":"1","253":"1","254":"1","255":"1","256":"1","257":"1","258":"1","259":"1","260":"1","261":"1","262":"1","263":"1","264":"1","265":"1","266":"1","267":"1","268":"1","269":"1","270":"1","271":"1","272":"1","273":"1","274":"1","275":"1","276":"1","300":"1","301":"1","302":"1","303":"1","304":"1","305":"1","306":"1","307":"1","308":"1","309":"1","310":"1","311":"1","312":"1","313":"1","314":"1","315":"1","316":"1","317":"1","318":"1","319":"1","320":"1","321":"1","322":"1","323":"1","324":"1","325":"1","326":"1","327":"1","328":"1","329":"1","330":"1","331":"1","332":"1","333":"1","334":"1","335":"1","336":"1","337":"1","338":"1","339":"1","340":"1","341":"1","342":"1","343":"1","344":"1","345":"1","346":"1","347":"1","348":"1","349":"1","350":"0","351":"2","352":"2","353":"2","354":"2","355":"1","356":"2","357":"1","358":"2","359":"2","360":"2","361":"2","400":"1","401":"1","402":"1","403":"1","450":"1","451":"1","452":"1","453":"1","454":"1","455":"1","456":"1","457":"1","458":"1","459":"1","460":"1","461":"1","462":"1","463":"1","464":"1","465":"1","466":"1","467":"1","468":"1","469":"1","470":"1","471":"1","472":"1","473":"1","474":"1","475":"1","476":"1","477":"1","478":"1","479":"1","480":"1","481":"1","482":"1","483":"1","550":"2","551":"2","552":"2","553":"2","554":"2","555":"2","556":"1","557":"2","558":"2","559":"2","560":"2","561":"2","600":"1","601":"1","602":"1","603":"1","604":"1","605":"1","606":"1","607":"1","608":"1","609":"1","630":"1","631":"1","632":"1","633":"1","634":"1","635":"1","636":"1","637":"1","638":"1","639":"1","660":"1","661":"1","662":"1","663":"1","664":"1","665":"1","666":"1","667":"1","668":"1","669":"1","700":"2","701":"1","702":"2","703":"2","704":"2","705":"1","706":"2","707":"2","708":"2","709":"2","750":"1","751":"1","752":"1","753":"1","754":"1","755":"1","756":"1","757":"1","758":"1","759":"1","804":"1","801":"1","800":"1","805":"1","802":"1","807":"1","803":"1","809":"1","806":"1","810":"1","808":"1","812":"1","811":"1","813":"1","815":"1","814":"1","816":"1","818":"1","817":"1","819":"1","820":"1","821":"1","822":"1","823":"1","824":"1","825":"1","826":"1","827":"1","828":"1","829":"2","830":"1","831":"1","832":"2","833":"1","834":"1"}'
- + aDIM_Y='{"0":"0","1":"1","2":"2","3":"1","4":"2","5":"2","6":"2","7":"2","8":"2","9":"1","10":"1","11":"1","12":"1","13":"1","14":"1","15":"1","16":"1","17":"1","18":"1","19":"1","20":"1","21":"1","22":"1","23":"1","24":"1","25":"1","26":"1","27":"1","28":"1","29":"1","30":"1","31":"1","32":"1","33":"1","34":"1","35":"1","36":"2","37":"2","38":"1","39":"2","40":"2","41":"2","42":"2","43":"2","44":"1","91":"1","92":"1","93":"1","97":"1","45":"2","46":"1","47":"2","48":"1","49":"2","50":"1","51":"1","52":"2","53":"2","54":"1","55":"1","56":"2","57":"2","58":"1","59":"2","60":"2","61":"2","62":"1","63":"1","64":"1","65":"1","66":"1","67":"2","68":"1","69":"1","70":"1","71":"1","72":"1","73":"1","74":"1","75":"1","76":"2","77":"2","78":"2","79":"2","80":"1","81":"2","82":"1","83":"1","84":"1","85":"1","86":"1","87":"1","88":"2","89":"1","90":"2","94":"1","95":"2","96":"1","98":"2","99":"1","100":"2","101":"2","102":"2","103":"2","104":"1","105":"1","106":"2","107":"1","108":"2","109":"1","110":"1","111":"1","112":"1","113":"1","114":"1","115":"1","116":"1","117":"1","118":"1","119":"1","120":"1","121":"1","122":"1","123":"1","124":"1","125":"1","126":"1","127":"2","128":"2","129":"2","130":"1","131":"1","132":"1","133":"1","134":"1","135":"1","136":"1","137":"1","138":"1","139":"1","140":"1","141":"1","142":"1","143":"1","144":"1","145":"1","146":"1","147":"1","148":"1","149":"1","150":"1","151":"1","152":"1","153":"1","154":"2","155":"1","156":"1","157":"1","158":"1","159":"1","160":"1","161":"1","162":"1","163":"1","164":"1","165":"1","166":"1","167":"1","168":"1","169":"1","170":"1","171":"1","172":"1","173":"1","174":"1","175":"1","176":"1","177":"1","178":"1","179":"1","180":"1","181":"1","182":"1","183":"1","184":"1","185":"1","186":"1","187":"1","188":"1","189":"1","200":"1","201":"1","202":"1","203":"1","204":"1","205":"1","206":"1","207":"1","208":"1","209":"1","210":"1","211":"1","212":"1","213":"1","214":"1","215":"1","216":"1","217":"1","218":"1","219":"1","220":"1","221":"1","250":"1","251":"1","252":"1","253":"1","254":"1","255":"1","256":"1","257":"1","258":"1","259":"1","260":"1","261":"1","262":"1","263":"1","264":"1","265":"1","266":"1","267":"1","268":"1","269":"1","270":"1","271":"1","272":"1","273":"1","274":"1","275":"1","276":"1","300":"1","301":"1","302":"1","303":"1","304":"1","305":"1","306":"1","307":"1","308":"1","309":"1","310":"1","311":"1","312":"1","313":"1","314":"1","315":"1","316":"1","317":"1","318":"1","319":"1","320":"1","321":"1","322":"1","323":"1","324":"1","325":"1","326":"1","327":"1","328":"1","329":"1","330":"1","331":"1","332":"1","333":"1","334":"1","335":"1","336":"1","337":"1","338":"1","339":"1","340":"1","341":"1","342":"1","343":"1","344":"1","345":"1","346":"1","347":"1","348":"1","349":"1","350":"0","351":"1","352":"1","353":"2","354":"2","355":"1","356":"2","357":"1","358":"2","359":"2","360":"1","361":"2","400":"1","401":"1","402":"1","403":"1","450":"1","451":"1","452":"1","453":"1","454":"1","455":"1","456":"1","457":"1","458":"1","459":"1","460":"1","461":"1","462":"1","463":"1","464":"1","465":"1","466":"1","467":"1","468":"1","469":"1","470":"1","471":"1","472":"1","473":"1","474":"1","475":"1","476":"1","477":"1","478":"1","479":"1","480":"1","481":"1","482":"1","483":"1","550":"2","551":"2","552":"2","553":"1","554":"2","555":"1","556":"1","557":"2","558":"2","559":"2","560":"2","561":"2","600":"1","601":"1","602":"1","603":"1","604":"1","605":"1","606":"1","607":"1","608":"1","609":"1","630":"1","631":"1","632":"1","633":"1","634":"1","635":"1","636":"1","637":"1","638":"1","639":"1","660":"1","661":"1","662":"1","663":"1","664":"1","665":"1","666":"1","667":"1","668":"1","669":"1","700":"2","701":"1","702":"1","703":"2","704":"1","705":"1","706":"2","707":"1","708":"2","709":"2","750":"1","751":"1","752":"1","753":"1","754":"1","755":"1","756":"1","757":"1","758":"1","759":"1","804":"1","801":"1","800":"1","805":"1","802":"1","807":"1","803":"1","809":"1","806":"1","810":"1","808":"1","812":"1","811":"1","813":"1","815":"1","814":"1","816":"1","818":"1","817":"1","819":"1","820":"1","821":"1","822":"1","823":"1","824":"1","825":"1","826":"1","827":"1","828":"1","829":"1","830":"1","831":"1","832":"2","833":"1","834":"1"}'
- + checkSoftwareVersions
- + local bTestsPassed=false
- + local iMajorVersion
- + local iMinorVersion
- ++ /cygdrive/k/Documents/jq --version
- + local $'sJQVer=jq-1.6\r'
- ++ echo $'jq-1.6\r'
- ++ sed 's/jq-\([1-9][0-9]*\)\..*/\1/'
- + iMajorVersion=1
- ++ echo $'jq-1.6\r'
- ++ sed 's/jq-[1-9][0-9]*\.\([0-9]*\).*/\1/'
- + iMinorVersion=6
- + '[' 1 -ge 1 ']'
- + '[' 1 -gt 1 ']'
- + [[ 1 -eq 1 ]]
- + [[ 6 -ge 5 ]]
- + '[' 4 -ge 4 ']'
- + '[' 4 -gt 4 ']'
- + [[ 4 -eq 4 ]]
- + [[ 4 -ge 3 ]]
- ++ php -r 'echo PHP_MAJOR_VERSION;'
- + iMajorVersion=7
- ++ php -r 'echo PHP_MINOR_VERSION;'
- + iMinorVersion=4
- + '[' 7 -ge 5 ']'
- + '[' 7 -gt 5 ']'
- + bTestsPassed=true
- + '[' true = false ']'
- + umask 002
- + echo 823
- + true
- + '[' -f ../updateInProgress ']'
- + '[' -f ../updateTrigger ']'
- ++ cat ../version.txt
- + '[' v2.73 '!=' v2.73 ']'
- + PAUSETIME=600
- + '[' -f dontrunbot ']'
- + '[' -f restartbot ']'
- + touch isactive.txt
- + rm mffcookies.txt
- ++ date +%s%N
- + NANOVALUE=1616684818249
- + LOGOFFURL='http://s1.wolnifarmerzy.pl/main.php?page=logout&logoutbutton=1'
- + POSTURL='https://www.wolnifarmerzy.pl/ajax/createtoken2.php?n=1616684818249'
- + AGENT='Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0'
- + POSTDATA='server=1&username=Eupatorium&password=[REDACTED]&ref=&retid='
- + echo 'Running My Free Farm Bash Bot v2.73'
- Running My Free Farm Bash Bot v2.73
- + echo 'Getting a login token'
- Getting a login token
- ++ wget -nv -T10 -a mffbot.log --output-document=- '--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0' '--post-data=server=1&username=Eupatorium&password=[REDACTED]&ref=&retid=' --keep-session-cookies --save-cookies mffcookies.txt 'https://www.wolnifarmerzy.pl/ajax/createtoken2.php?n=1616684818249'
- ++ sed -e 's/\[1,"\(.*\)"\]/\1/g'
- ++ sed -e 's/\\//g'
- + MFFTOKEN='https://wolnifarmerzy.pl/portal/port_logw.php?server=1&unr=5017501&portunr=25951342&token=63e7ba8985c11737869f6452d38a9ece'
- + echo 'Attempting to log in to MFF server 1 with username Eupatorium'
- Attempting to log in to MFF server 1 with username Eupatorium
- + wget -nv -T10 -a mffbot.log --output-document=mffbottemp.html '--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0' --keep-session-cookies --save-cookies mffcookies.txt 'https://wolnifarmerzy.pl/portal/port_logw.php?server=1&unr=5017501&portunr=25951342&token=63e7ba8985c11737869f6452d38a9ece'
- ++ grep -om1 '[a-z0-9]\{32\}' mffbottemp.html
- + RID=3bd13b3de8bf026aa90033c24b6f2986
- + '[' -z 3bd13b3de8bf026aa90033c24b6f2986 ']'
- + echo 'Login successful'
- Login successful
- + source ../functions.sh
- ++ AJAXURL=http://s1.wolnifarmerzy.pl/ajax/
- ++ AJAXFARM='http://s1.wolnifarmerzy.pl/ajax/farm.php?rid=3bd13b3de8bf026aa90033c24b6f2986&'
- ++ AJAXFOREST='http://s1.wolnifarmerzy.pl/ajax/forestry.php?rid=3bd13b3de8bf026aa90033c24b6f2986&'
- ++ AJAXFOOD='http://s1.wolnifarmerzy.pl/ajax/foodworld.php?rid=3bd13b3de8bf026aa90033c24b6f2986&'
- ++ AJAXCITY='http://s1.wolnifarmerzy.pl/ajax/city.php?rid=3bd13b3de8bf026aa90033c24b6f2986&'
- ++ AJAXMAIN='http://s1.wolnifarmerzy.pl/ajax/main.php?rid=3bd13b3de8bf026aa90033c24b6f2986&'
- ++ AJAXGUILD='http://s1.wolnifarmerzy.pl/ajax/guild.php?rid=3bd13b3de8bf026aa90033c24b6f2986&'
- + trap exitBot SIGINT SIGTERM
- + echo 'Getting farm status...'
- Getting farm status...
- + getFarmData farmdata.txt
- + local sFile=farmdata.txt
- + wget -nv -T10 -a mffbot.log --output-document=farmdata.txt '--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0' --load-cookies mffcookies.txt 'http://s1.wolnifarmerzy.pl/ajax/farm.php?rid=3bd13b3de8bf026aa90033c24b6f2986&mode=getfarms&farm=1&position=0'
- ++ /cygdrive/k/Documents/jq -r .updateblock.menue.levelnum farmdata.txt
- + PLAYERLEVELNUM=$'18\r'
- ' echo 'Your player level is 18
- Your player level is 18
- ++ /cygdrive/k/Documents/jq .updateblock.menue.premium farmdata.txt
- + PREMIUM=$'0\r'
- + echo -n 'This is a '
- This is a + '[' $'0\r' -eq 0 ']'
- : integer expression expected
- + unset NONPREMIUM
- + echo 'premium account'
- premium account
- + checkLoginNews
- + local iNews
- ++ /cygdrive/k/Documents/jq -r '.updateblock.menue.news? | .[]? | select(.login == "1").nnr' farmdata.txt
- + local aNews=
- + grep -q 'dologinbonus = 0' config.ini
- + '[' $'18\r' -ge 8 ']'
- : integer expression expected8
- + checkActiveGuildJobForPlayer
- ++ /cygdrive/k/Documents/jq '.updateblock.job.guild_job_data | length' farmdata.txt
- + local $'iActiveGuildJob=0\r'
- + '[' $'0\r' -gt 0 ']'
- : integer expression expected: 0
- + return 1
- + for FARM in {1..7}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms | has("1")' farmdata.txt
- + PLACEEXISTS=$'true\r'
- + '[' $'true\r' = false ']'
- + echo 'Checking for pending tasks on farm 1...'
- Checking for pending tasks on farm 1...
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["1"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=$'1\r'
- + '[' '' = NP ']'
- + '[' $'1\r' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' $'1\r' = 19 ']'
- ++ getMaxQueuesForBuildingID $'1\r'
- ++ local $'iBuildingID=1\r'
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["1"]["1"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["1"]["1"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["1"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) > 0 and . < 600 then . else empty end'
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) > 0 and . < 600 then . else empty end' farmdata.txt
- + local $'iRemaining=0\r'
- + '[' -z $'0\r' ']'
- + '[' $'0\r' -eq 0 ']'
- : integer expression expected: 0
- + PAUSETIME=$'0\r'
- ++ date +%s
- + PAUSECORRECTEDAT=1616684823
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["1"]["1"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["1"]["1"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["1"]["1"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["1"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["2"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=$'2\r'
- + '[' '' = NP ']'
- + '[' $'2\r' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' $'2\r' = 19 ']'
- ++ getMaxQueuesForBuildingID $'2\r'
- ++ local $'iBuildingID=2\r'
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["1"]["2"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["1"]["2"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["1"]["2"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["2"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["1"]["2"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["1"]["2"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["1"]["2"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["2"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["3"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=$'1\r'
- + '[' '' = NP ']'
- + '[' $'1\r' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' $'1\r' = 19 ']'
- ++ getMaxQueuesForBuildingID $'1\r'
- ++ local $'iBuildingID=1\r'
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["1"]["3"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["1"]["3"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["1"]["3"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["3"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["1"]["3"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["1"]["3"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["1"]["3"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["3"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["4"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=$'3\r'
- + '[' '' = NP ']'
- + '[' $'3\r' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' $'3\r' = 19 ']'
- ++ getMaxQueuesForBuildingID $'3\r'
- ++ local $'iBuildingID=3\r'
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["1"]["4"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["1"]["4"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["1"]["4"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["4"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["1"]["4"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["1"]["4"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["1"]["4"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["4"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["5"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=$'0\r'
- + '[' '' = NP ']'
- + '[' $'0\r' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' $'0\r' = 19 ']'
- ++ getMaxQueuesForBuildingID $'0\r'
- ++ local $'iBuildingID=0\r'
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["1"]["5"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["1"]["5"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["1"]["5"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["5"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["1"]["5"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["1"]["5"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["1"]["5"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["5"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["6"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=$'0\r'
- + '[' '' = NP ']'
- + '[' $'0\r' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' $'0\r' = 19 ']'
- ++ getMaxQueuesForBuildingID $'0\r'
- ++ local $'iBuildingID=0\r'
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["1"]["6"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["1"]["6"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["1"]["6"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["6"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["1"]["6"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["1"]["6"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["1"]["6"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["1"]["6"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["1"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["1"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for FARM in {1..7}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms | has("2")' farmdata.txt
- + PLACEEXISTS=$'false\r'
- + '[' $'false\r' = false ']'
- + echo 'Checking for pending tasks on farm 2...'
- Checking for pending tasks on farm 2...
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["1"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["2"]["1"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["2"]["1"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["2"]["1"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["2"]["1"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["2"]["1"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["2"]["1"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["1"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["2"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["2"]["2"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["2"]["2"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["2"]["2"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["2"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["2"]["2"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["2"]["2"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["2"]["2"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["2"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["3"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["2"]["3"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["2"]["3"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["2"]["3"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["3"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["2"]["3"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["2"]["3"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["2"]["3"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["3"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["4"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["2"]["4"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["2"]["4"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["2"]["4"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["4"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["2"]["4"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["2"]["4"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["2"]["4"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["4"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["5"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["2"]["5"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["2"]["5"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["2"]["5"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["5"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["2"]["5"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["2"]["5"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["2"]["5"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["5"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["6"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["2"]["6"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["2"]["6"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["2"]["6"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["6"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["2"]["6"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["2"]["6"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["2"]["6"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["2"]["6"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["2"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["2"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for FARM in {1..7}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms | has("3")' farmdata.txt
- + PLACEEXISTS=$'false\r'
- + '[' $'false\r' = false ']'
- + echo 'Checking for pending tasks on farm 3...'
- Checking for pending tasks on farm 3...
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["1"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["3"]["1"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["3"]["1"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["3"]["1"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["3"]["1"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["3"]["1"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["3"]["1"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["1"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["2"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["3"]["2"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["3"]["2"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["3"]["2"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["2"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["3"]["2"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["3"]["2"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["3"]["2"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["2"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["3"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["3"]["3"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["3"]["3"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["3"]["3"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["3"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["3"]["3"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["3"]["3"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["3"]["3"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["3"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["4"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["3"]["4"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["3"]["4"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["3"]["4"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["4"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["3"]["4"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["3"]["4"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["3"]["4"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["4"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["5"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["3"]["5"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["3"]["5"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["3"]["5"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["5"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["3"]["5"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["3"]["5"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["3"]["5"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["5"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["6"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["3"]["6"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["3"]["6"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["3"]["6"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["6"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["3"]["6"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["3"]["6"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["3"]["6"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["3"]["6"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["3"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["3"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for FARM in {1..7}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms | has("4")' farmdata.txt
- + PLACEEXISTS=$'false\r'
- + '[' $'false\r' = false ']'
- + echo 'Checking for pending tasks on farm 4...'
- Checking for pending tasks on farm 4...
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["1"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["4"]["1"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["4"]["1"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["4"]["1"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["4"]["1"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["4"]["1"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["4"]["1"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["1"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["2"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["4"]["2"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["4"]["2"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["4"]["2"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["2"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["4"]["2"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["4"]["2"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["4"]["2"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["2"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["3"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["4"]["3"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["4"]["3"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["4"]["3"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["3"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["4"]["3"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["4"]["3"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["4"]["3"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["3"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["4"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["4"]["4"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["4"]["4"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["4"]["4"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["4"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["4"]["4"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["4"]["4"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["4"]["4"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["4"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["5"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["4"]["5"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["4"]["5"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["4"]["5"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["5"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["4"]["5"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["4"]["5"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["4"]["5"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["5"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["6"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["4"]["6"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["4"]["6"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["4"]["6"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["6"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["4"]["6"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["4"]["6"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["4"]["6"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["4"]["6"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["4"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["4"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for FARM in {1..7}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms | has("5")' farmdata.txt
- + PLACEEXISTS=$'false\r'
- + '[' $'false\r' = false ']'
- + echo 'Checking for pending tasks on farm 5...'
- Checking for pending tasks on farm 5...
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["1"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["5"]["1"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["5"]["1"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["5"]["1"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["5"]["1"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["5"]["1"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["5"]["1"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["1"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["2"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["5"]["2"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["5"]["2"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["5"]["2"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["2"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["5"]["2"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["5"]["2"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["5"]["2"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["2"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["3"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["5"]["3"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["5"]["3"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["5"]["3"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["3"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["5"]["3"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["5"]["3"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["5"]["3"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["3"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["4"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["5"]["4"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["5"]["4"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["5"]["4"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["4"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["5"]["4"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["5"]["4"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["5"]["4"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["4"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["5"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["5"]["5"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["5"]["5"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["5"]["5"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["5"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["5"]["5"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["5"]["5"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["5"]["5"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["5"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["6"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["5"]["6"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["5"]["6"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["5"]["6"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["6"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["5"]["6"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["5"]["6"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["5"]["6"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["5"]["6"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["5"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["5"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for FARM in {1..7}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms | has("6")' farmdata.txt
- + PLACEEXISTS=$'false\r'
- + '[' $'false\r' = false ']'
- + echo 'Checking for pending tasks on farm 6...'
- Checking for pending tasks on farm 6...
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["1"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["6"]["1"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["6"]["1"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["6"]["1"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["6"]["1"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["6"]["1"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["6"]["1"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["1"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["2"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["6"]["2"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["6"]["2"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["6"]["2"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["2"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["6"]["2"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["6"]["2"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["6"]["2"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["2"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["3"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["6"]["3"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["6"]["3"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["6"]["3"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["3"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["6"]["3"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["6"]["3"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["6"]["3"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["3"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["4"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["6"]["4"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["6"]["4"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["6"]["4"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["4"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["6"]["4"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["6"]["4"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["6"]["4"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["4"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["5"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["6"]["5"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["6"]["5"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["6"]["5"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["5"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["6"]["5"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["6"]["5"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["6"]["5"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["5"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["6"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["6"]["6"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["6"]["6"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["6"]["6"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["6"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["6"]["6"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["6"]["6"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["6"]["6"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["6"]["6"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["6"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["6"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for FARM in {1..7}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms | has("7")' farmdata.txt
- + PLACEEXISTS=$'false\r'
- + '[' $'false\r' = false ']'
- + echo 'Checking for pending tasks on farm 7...'
- Checking for pending tasks on farm 7...
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["1"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["7"]["1"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["7"]["1"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["7"]["1"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["1"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["1"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["7"]["1"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["7"]["1"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["7"]["1"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["1"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["1"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["2"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["7"]["2"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["7"]["2"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["7"]["2"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["2"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["2"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["7"]["2"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["7"]["2"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["7"]["2"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["2"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["2"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["3"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["7"]["3"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["7"]["3"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["7"]["3"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["3"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["3"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["7"]["3"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["7"]["3"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["7"]["3"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["3"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["3"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["4"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["7"]["4"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["7"]["4"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["7"]["4"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["4"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["4"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["7"]["4"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["7"]["4"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["7"]["4"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["4"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["4"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["5"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["7"]["5"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["7"]["5"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["7"]["5"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["5"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["5"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["7"]["5"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["7"]["5"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["7"]["5"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["5"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["5"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + for POSITION in {1..6}
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["6"].buildingid | tonumber' farmdata.txt
- + BUILDINGID=
- + '[' '' = NP ']'
- + '[' '' = 0 ']'
- -lt 4 ]]
- ")syntax error: invalid arithmetic operator (error token is "
- + grep -q 'correctqueuenum = 1' config.ini
- + grep -q 'removeweed = 1' config.ini
- + '[' '' = 19 ']'
- ++ getMaxQueuesForBuildingID
- ++ local iBuildingID=
- ++ case "$iBuildingID" in
- ++ echo 1
- + '[' 1 -eq 3 ']'
- + aSLOTS=0
- + for SLOT in $aSLOTS
- + checkTimeRemaining '.updateblock.farms.farms["7"]["6"].production[0]?.remain'
- + local 'sFilter=.updateblock.farms.farms["7"]["6"].production[0]?.remain'
- + sFilter='.updateblock.farms.farms["7"]["6"].production[0]?.remain | if . == 0 then . else empty end') > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["6"].production[0]?.remain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["6"].production[0]?.remain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + '[' 0 -eq 0 ']'
- + checkTimeRemaining '.updateblock.farms.farms["7"]["6"].water[0].waterremain'
- + local 'sFilter=.updateblock.farms.farms["7"]["6"].water[0].waterremain'
- + sFilter='.updateblock.farms.farms["7"]["6"].water[0].waterremain | if . == 0 t then . else empty end' > 0 and . < 0 then 0 elif (. | length) > 0 and . < 0
- ++ /cygdrive/k/Documents/jq '.updateblock.farms.farms["7"]["6"].water[0].waterremain | if . == 0 then 0 elif (. | length) > 0 and . < 0 then 0 elif (. | length) then . else empty end' farmdata.txt
- jq: error: syntax error, unexpected INVALID_CHARACTER (Windows cmd shell quoting issues?) at <top-level>, line 1:
- .updateblock.farms.farms["7"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: error: Possibly unterminated 'if' statement at <top-level>, line 1:
- .updateblock.farms.farms["7"]["6"].water[0].waterremain | if . == 0 then 0 elif then . else empty end
- jq: 2 compile errors
- + local iRemaining=
- + '[' -z '' ']'
- + return 1
- + sed -i 's/correctqueuenum = 1/correctqueuenum = 0/' config.ini
- + sed -i 's/removeweed = 1/removeweed = 0/' config.ini
- + '[' $'18\r' -ge 23 ']'
- : integer expression expected8
- + '[' $'18\r' -ge 40 ']'
- : integer expression expected8
- + '[' $'18\r' -ge 42 ']'
- : integer expression expected8
- + '[' $'18\r' -ge 44 ']'
- : integer expression expected8
- + grep -q 'vehiclemgmt5 = 0' config.ini
- + grep -q 'vehiclemgmt6 = 0' config.ini
- + grep -q 'vehiclemgmt7 = 0' config.ini
- + grep -q 'sendfarmiesaway = 1' config.ini
- + grep -q 'sendflowerfarmiesaway = 1' config.ini
- + grep -q 'dodog = 0' config.ini
- + grep -q 'dodonkey = 1' config.ini
- + grep -q 'dopuzzleparts = 1' config.ini
- + grep -q 'redeempuzzlepacks = 1' config.ini
- + grep -q 'dobutterflies = 1' config.ini
- + grep -q 'dodeliveryevent = 1' config.ini
- + '[' $'18\r' -ge 9 ']'
- : integer expression expected8
- + grep -q 'autobuyrefillto = 0' config.ini
- + '[' $'18\r' -ge 49 ']'
- : integer expression expected8
- + grep -q 'doolympiaevent = 1' config.ini
- + grep -q 'docalendarevent = 1' config.ini
- + grep -q 'doseedbox = 1' config.ini
- + '[' $'18\r' -ge 8 ']'
- : integer expression expected8
- + '[' $'18\r' -ge 20 ']'
- : integer expression expected8
- + '[' $'18\r' -ge 11 ']'
- : integer expression expected8
- + '[' $'18\r' -ge 8 ']'
- : integer expression expected8
- + echo 'Logging off...'
- Logging off...
- + WGETREQ 'http://s1.wolnifarmerzy.pl/main.php?page=logout&logoutbutton=1'
- + sHTTPReq='http://s1.wolnifarmerzy.pl/main.php?page=logout&logoutbutton=1'
- + wget -nv -T10 -a mffbot.log --output-document=/dev/null '--user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0' --load-cookies mffcookies.txt 'http://s1.wolnifarmerzy.pl/main.php?page=logout&logoutbutton=1'
- + rm -f mffcookies.txt farmdata.txt mffbottemp.html /tmp/Eupatorium-823 '/tmp/Eupatorium-823-[5-6]-[1-6]'
- + echo -n 'Time stamp: '
- Time stamp: + date '+%A, %d. %B %Y - %H:%Mh'
- + tee lastrun.txt
- Thursday, 25. March 2021 - 16:07h
- + '[' 1616684823 -ne 0 ']'
- ++ date +%s
- + CURRENTEPOCH=1616684831
- + TIMEDELTA=8
- ")syntax error: invalid arithmetic operator (error token is "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement