watson icon indicating copy to clipboard operation
watson copied to clipboard

Some conditional statements never run because errors are always thrown when variables from commands aren't set to a value

Open colinkiama opened this issue 3 years ago • 2 comments

For example, in task/install, the script will just fail without displaying any instructions the user to install the elementary-sdk package and if vscodium isn't found on the system, the script will also throw an error instead of continuing.

However, this seems to only occur when task/install is called from the watson script.

colinkiama avatar Apr 15 '22 13:04 colinkiama

I've spotted these bugs by adding the -x flag to the scripts to aid with debugging.

colinkiama avatar Apr 15 '22 13:04 colinkiama

A workaround for this is commenting out the set command used in the beginning of the scripts however, I wouldn't consider that as the solution.

colinkiama avatar Apr 15 '22 14:04 colinkiama