Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,20 @@
# Write your code here
echo "Creating project..."

Choose a reason for hiding this comment

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

Usually it is a good practice to include #!/bin/bash or #!/usr/bin/env bash line at the beginning of a shell script file.

Copy link
Author

Choose a reason for hiding this comment

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

Thank you @mo92othman for taking the time to review my work. I got a bit confused about the folder name casing, since the structure in the assignment used lowercase, while step 9 referred to an uppercase version. I’ve now made everything consistent and also added #!/bin/bash at the top as you suggested.
I’ve pushed the updated changes to GitHub, so the pull request now reflects the corrected version.
I also updated my GitHub page, and everything works properly now, including the GitHub Streak section.
Thank you again for your attention and guidance.

mkdir project
cd project && git init
mkdir -p resources src/database src/profile && touch README.md settings.conf "resources/family picture.jpg" resources/icon.png resources/logo.png src/program.java

Choose a reason for hiding this comment

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

Details matter. The folder created is named resources (lowercase). Using Resources is better to flow the instructions of teh assignemnt.

git add . && git commit -m "initial commit"

Choose a reason for hiding this comment

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

This works well 👍 Just a note: you can run thenm using && as you did. And you can also run git add . and git commit as separate commands too.

sleep 3
echo "Setup project..."
echo "Welcome to my project" > README.md
rmdir src/profile
rm "resources/family picture.jpg"
git add . && git commit -m "Add info to README.md"
sleep 3
ls -la Resources

Choose a reason for hiding this comment

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

Mind the casing here.

echo "Setup javascript..."
mv src/program.java src/program.js
echo 'console.log("JavaScript works!");' > src/program.js
node src/program.js
git add . && git commit -m "Change program.java to program.js"

Choose a reason for hiding this comment

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

Nice descriptive commit message.

ls -la ~
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>
YanaP1312