At least when running development style (node index.js) on linux, the flash script is explicitly run with a cwd of tempDir. However, it references the backup script via "bash ./backup_restore_profile.sh" which is not going to work with the cwd set like that.
I can help resolve this if you tell me your preferred means of dealing with this. The simplest possibility might be to just directly invoke the backup script from index.js rather than depending on the bash script to do it.
At least when running development style (node index.js) on linux, the flash script is explicitly run with a cwd of tempDir. However, it references the backup script via "bash ./backup_restore_profile.sh" which is not going to work with the cwd set like that.
I can help resolve this if you tell me your preferred means of dealing with this. The simplest possibility might be to just directly invoke the backup script from index.js rather than depending on the bash script to do it.