Tell us what’s happening:
Not possible to pass this step. It shows syntax errors in lines 5 and 6.
Your code so far
Your browser information:
User Agent is:
Mozilla/5.0 (X11; CrOS aarch64 14989.107.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/184.108.40.206 Safari/537.36
Challenge: Learn Bash Scripting by Building Five Programs - Build Five Programs
Link to the challenge:
at a minimum in order to get help from someone who is not standing next to you, you will need to share your code and the error messages you are getting.
Sorry. Here is the error:
codeally@6fb8d222dc34:~/project$ ./countdown.sh 5
./countdown.sh: line 5: syntax error in conditional expression
./countdown.sh: line 6: syntax error near
then' ./countdown.sh: line 6: then’
if [[ $1 -le 5]]
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (
</>) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
can you leave a single space after the 5 and try?
It works now. Thanks for your support!