I cannot get the “If the argument input to your element.sh script doesn’t exist as an atomic_number, symbol, or name in the database, the only output should be I could not find that element in the database.” requirement to pass even though that’s the output I get when I run the script in the terminal.
my code stuck at this too, and I have revised it 2 times from scratch so just copied someone else’s code which passed even with a test case with “Hel”.
I was sad and just ended up copying it
I hope you find the corrections to your code.
I have this script which passed all user stories EXCEPT this one. element_script
Thanks, I will surely use this approach more often.
Although, I found that the main culprit was the “exit 1” status in the if-conditions as it was returning 2 responses, the message and the status, which apparently freecodecamp didn’t liked.