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