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
36 changes: 35 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
# Write your code here
#!/usr/bin/env bash
set -e
echo "creating project.."

Choose a reason for hiding this comment

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

Details matter: the instructions specify the format of this string as "Creating project...". It should start with a capital C and end with three periods.

The autograding check currently ignores case and only checks the start of the string without the periods. In future, more stringent checks could flag this as an error.

mkdir project
cd project
git init
mkdir resources
mkdir src
mkdir src/database
mkdir src/profile
touch README.md
touch settings.conf
touch resources/family\ picture.jpg

Choose a reason for hiding this comment

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

Using a backslash to escape the space works fine. Alternatively, you could also quote the path argument that contains a space.

Suggested change
touch resources/family\ picture.jpg
touch "resources/family picture.jpg"

touch resources/icon.png
touch resources/logo.png
touch src/program.java
git add .
git commit -m "Initial commit"
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.

Mind the casing.

echo "Welcome to my project" > README.md
rmdir src/profile
rm resources/family\ picture.jpg
git add .
git commit -m "update readme and remove profile and family picture"

Choose a reason for hiding this comment

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

👍 Message is descriptive.

sleep 3
ls resources
echo "setup javascript"

Choose a reason for hiding this comment

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

Casing

mv src/program.java src/program.js
echo 'console.log("JavaScript works!");' > src/program.js
node src/program.js
git add .
git commit -m "convert program to JavaScript"
ls ~
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>
mohammedalfakih-dev