Task1.sh works for me, but fails autograder

Can someone please tell me what’s wrong with this code? It works for me but is failing autograder.

#!/bin/bash

cd /home/user/catkin_ws/src/linux_exam

mkdir -p /home/user/catkin_ws/src/linux_exam/exam

cd /home/user/catkin_ws/src/linux_exam/exam

touch my_file.py

echo "This bash script has finished!"

Hi @adamB6 ,

Welcome to our community.

I think you overlooked one of the specifications b of the exam for task 1:

a) First, it moves inside the linux_exam folder.

b) Once it is there, it generates a folder structure like the following one: this->is->my->linux->exam (check Specifications)

By checking your script I see you don’t create the this/is/my/linux/exam folder.

Ah, for some reason I was thinking those were just filler words. Thanks for the response!

1 Like