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
56 changes: 55 additions & 1 deletion task-1/setup.sh
Original file line number Diff line number Diff line change
@@ -1 +1,55 @@
# Write your code here
#!/bin/bash
echo "Creating project…"
mkdir project
cd project
git init
touch README.md
touch settings.conf
mkdir resources

touch resources/"family picture.jpg" resources/icon.png resources/logo.png

mkdir src

mkdir src/database
mkdir src/profile
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.

This is fine for plain text output, but be careful with

(Unicode ellipsis) is not the same as ... (three ASCII dots).
They look similar, but they are different characters.

For text this is usually fine, but in JavaScript ... is actual syntax
(e.g. spread/rest operators), and replacing it with will break the code.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for your feedback.
I fixed exercise 2 :)


echo "Welcome to my project" > README.md

rm -rf src/profile
rm resources/"family picture.jpg"

git add .


git commit -m "Edit README.md file and remove unneeded folder/files"


sleep 3

ls -l resources

echo "Setup javascript…"

mv src/program.java src/program.js

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

node src/program.js

git add src/program.java
git add src/program.js
git commit -m "Switch from Java 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>
Barboud