Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
43 changes: 42 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
# Write your code here
#!/bin/bash
echo "Creating project…"
mkdir project
cd project
git init
touch README.md
mkdir resources
touch settings.conf
mkdir src
cd resources
touch family_picture.jpg
touch icon.png
touch logo.png
cd ../src
mkdir database
mkdir profile
touch program.java
cd ..
git add .
git commit -a -m "initial commit"

Choose a reason for hiding this comment

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

Sinc you already used git add ., so git commit -a is not needed here. Using git commit -m "initial commit" is clearer.

sleep 3
echo "Setup project"

Choose a reason for hiding this comment

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

As mentioned in the first comment about details, the assignment asks for the exact message Setup project…. It’s good practice to match the wording and casing exactly.

echo "Welcome to my project" >> README.md
cd src
rm -rf profile
cd ../resources
rm family_picture.jpg
cd ..
git commit -a -m "write welcome text to README, remove profile directory , remove family_picture.jpg"

Choose a reason for hiding this comment

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

Nice and descriptive commit message 👍

Small note: It’s usually clearer and safer to run git add . and then commit using git commit -m, instead of using git commit -a -m.

sleep 3
cd resources
ls -la
echo "Setup javascript"

Choose a reason for hiding this comment

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

Wording and details: Setup javascript…

cd ../src
mv program.java program.js
echo "console.log('JavaScript works!');">> program.js
node program.js
cd ..
git commit -a -m "rename program.java to program.js , add log line to program.js"
cd ~
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>
shmoonwalker