Skip to content

Jawad A.#21

Open
jivvyjams wants to merge 1 commit intoHackYourAssignment:mainfrom
jivvyjams:main
Open

Jawad A.#21
jivvyjams wants to merge 1 commit intoHackYourAssignment:mainfrom
jivvyjams:main

Conversation

@jivvyjams
Copy link

No description provided.

@github-actions
Copy link

📝 HackYourFuture auto grade

Assignment Score: 79 / 100 ✅

Status: ✅ Passed
Minimum score to pass: 50
🧪 The auto grade is experimental and still being improved

Test Details
======================= Task 1 =======================
▶️ Running setup.sh...
✅ Successfully executed setup.sh.
✅ Script ran for at least 6 seconds
✅ Path exists: project
✅ Path exists: project/README.md
✅ Path exists: project/settings.conf
✅ Path exists: project/resources
✅ Path exists: project/resources/icon.png
✅ Path exists: project/resources/logo.png
✅ Path exists: project/src
✅ Path exists: project/src/program.js
✅ Path exists: project/src/database
✅ Path exists: project/.git
✅ Path does not exist: project/resources/family picture.jpg
✅ Path does not exist: project/src/profile
✅ Path does not exist: project/src/program.java
❌ File content does not match: project/src/program.js
Expected: "console.log('JavaScript works!');"
Found:    "console.log('JavaScript works');"
✅ File content is correct: project/README.md
✅ Output has: "Creating project"
✅ Output has: "Setup project"
✅ Output has: "Setup JavaScript"
❌ Output does not have: "JavaScript works!"
✅ Output has: "icon.png"
✅ Output has: "All done!"
✅ Found 3 commits
✅ First commit message is "initial commit"

======================= Task 2 =======================
Your GitHub username: jivvyjams
▶️ Downloading profile README from: https://raw.githubusercontent.com/jivvyjams/jivvyjams/main/README.md
✅ Profile contains GitHub top languages widget
✅ Profile contains GitHub streaks widget
✅ Profile contains an animated title

======================= Summary =======================
- Task 1 Score: 92%
- Task 2 Score: 50%
Total Score: 79%
Min passing score: 50%

@jivvyjams jivvyjams changed the title jawada Jawad A. Jan 16, 2026
@rafaelhdr rafaelhdr self-assigned this Jan 22, 2026
Copy link

@rafaelhdr rafaelhdr left a comment

Choose a reason for hiding this comment

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

Nice job 👏
You made the assignment with nice advanced bash methods. It is really good.

The only detail I think would be valuable for you is to use the \ for escape some chars.

ls -l resources/
echo "Setup javascript..."
mv src/program.java src/program.js
# [ERROR] "bash: !': event not found" if exclamation mark included, hence removal

Choose a reason for hiding this comment

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

I see. There are some workarounds for this error. You could escape it like this:

echo "console.log('JavaScript works\!');" > src/program.js

The \ is very common for being explicit that the next character should be used as is, and not be used here as an event (in this case, it seems to be an history expansion)

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

Choose a reason for hiding this comment

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

Nice. Very advanced way to create files 👏

There is just a typo in the family-picture.jpg (which should have a space instead of -)

I assume you were having problems with spaces. But you can use it by escaping (use \ before the space)

echo "Welcome to my project" > README.md
rm -r src/profile
rm resources/family-picture.jpg
git commit -a -m "Project setup and removed personal file"

Choose a reason for hiding this comment

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

Good description 👍

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 very much for your feedback, Rafael! I indeed did learn about escaping characters after submitting the assignment 😅
I ended up using it later for some practice scripts and customizing my bash prompt 🤓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants