Skip to content
Open
Show file tree
Hide file tree
Changes from 5 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…"
rm -rf project
mkdir project
cd project
git init

touch README.md
mkdir resources
cd resources
touch familypicture.jpg icon.png logo.png
cd ..
touch settings.conf
mkdir src
cd src
mkdir database
mkdir profile
touch program.java
cd ..
git add .
git commit -m "initial commit"
echo "Setup project…"
echo "Welcome to my project" >> README.md
cd src
rmdir profile
cd ..
cd resources

Choose a reason for hiding this comment

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

It works create, but sometimes you could use the path to remove it. So, you can save some lines.

So, instead of:

cd resources
rm familypicture.jpg
cd ..

You could do

rm resources/familypicture.jpg

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 for the insight and guidance, i will commit the new changes..

rm familypicture.jpg
cd ..
git add .
git commit -m "deleted profile and familypicture.jpg"
ls resources
echo "Setup javascript…"
cd src
mv program.java program.js
echo "console.log('JavaScript works!');" >> program.js
node program.js
git add .
git commit -m "changed the name of program.java to program.js and changed the content of program.js"
cd ..
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>
Miuroro