![]() |
Shell script returning divide by zero error - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: General (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=4) +--- Forum: Suggestions and Feedback (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=13) +--- Thread: Shell script returning divide by zero error (/showthread.php?tid=3869) |
Shell script returning divide by zero error - Tegid - 03-26-2017 'lite-tweaks-super' returning the following error: Code: :~/$ lite-tweaks-super The 'while read line' loop should not in theory at least by the looks execute any iterations if '$TOTAL_LINES' is zero, my scripting is largely POSIX (blame BSD) and not Bash so off the top of my head I'm not entirely sure what is going on here: Code: ## Arrays execution Re: Shell script returning divide by zero error - ralphy - 03-26-2017 (03-26-2017, 08:06 PM)Tegid link Wrote: 'lite-tweaks-super' returning the following error: Looks to me you are calling lite-tweaks-super instead of lite-tweks. Call lite-tweaks instead which is the one that passes all arrays to lite-tweak-super when needed. Re: Shell script returning divide by zero error - Tegid - 03-26-2017 Ha, cheers, those pesky assumptions again. |