Skip to content
Open
44 changes: 43 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
# Write your code here
#!/bin/bash
echo "Hello, world!"
mkdir project
cd project
git init
mkdir README.md resources settings.conf src
cd resources
touch family picture.jpg icon.png logo.png
cd ..
cd src
touch database profile program.java

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

database and profile should be folders, not files. So in this case we need to use mkdir for directories and touch only for files.

Could you modify it ,please?

cd ..
git add .
git commit -m "initial commit"
echo "Setup project..."
cd README.md
echo "Welcome to my project" >> README.md
cd ..
cd src
rm profile
cd ..
cd resources
rm family picture.jpg
cd ..
git add .
git commit -m "delete files"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assignment asks to wait 3 seconds between steps using sleep 3, which is missing here.

It is also best practice to write a clear descriptive commit message. So the message coudl be more detailed.

pwd
cd resources
pwd
ls -a

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you should list the contents of the resources folder, for example with ls resources. Using ls -a lists the current folder instead.

echo "Setup javascript..."
cd ..
cd src
pwd
mv program.java program.js
echo "console.log('Javascript works!');" >> program.js
node program.js
cd ..
pwd
git add .
git commit -m "model runs"
Copy link

@mo92othman mo92othman Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same about the commit message clarity here.

ls -a
echo "All done!"
2 changes: 1 addition & 1 deletion task-2/github-username.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<paste here your github username>
<paste here your github username>hannahwn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, you could remove the placeholder text and leave only your GitHub username. Could you modify it please?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you deleted the file itself in here :) That's not what we wanted to do, right?