Skip to content
Open
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
42 changes: 41 additions & 1 deletion task-1/setup.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1,41 @@
# Write your code here
#!/bin/bash

echo "Creating project…"
mkdir -p project
cd project
git init


mkdir -p resources sec/database sec/profile

Choose a reason for hiding this comment

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

You have misread the name of the required folder sec -> src. That's why the autograder flagged some errors.

Suggested change
mkdir -p resources sec/database sec/profile
mkdir -p resources src/database src/profile

touch README.md setting.conf
touch "resources/Family picture.jpg" resources/Icon.png resources/logo.png

Choose a reason for hiding this comment

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

👍 for placing quotes around the file name with a space

touch sec/program.java

# commit
git add .
git commit -m "initial commit"
sleep 3



echo "Setup project…"
echo "Welcome to my project" > README.md
rm -rf sec/profile
rm "resources/Family picture.jpg"
git add .
git commit -m "Remove profile folder and Family picture.jpg, update README.md"
sleep 3

# reset JavaScript
ls resources
echo "Setup javascript…"
mv sec/program.java sec/program.js
echo "console.log('JavaScript works!');" > sec/program.js
node sec/program.js
git add .
git commit -m "Rename program to JS, add console.log, and test JavaScript execution"
sleep 3


ls ~
echo "All done!"