gen-inventory.sh: emit error and pause if file not created