From 1bcedee9e8647bd02fefb0b914f90c41eea797c9 Mon Sep 17 00:00:00 2001 From: jivvy Date: Fri, 16 Jan 2026 20:27:00 +0100 Subject: [PATCH] Assignment submission --- task-1/setup.sh | 26 +++++++++++++++++++++++++- task-2/github-username.txt | 2 +- 2 files changed, 26 insertions(+), 2 deletions(-) mode change 100644 => 100755 task-1/setup.sh diff --git a/task-1/setup.sh b/task-1/setup.sh old mode 100644 new mode 100755 index 4067509..2ebcb98 --- a/task-1/setup.sh +++ b/task-1/setup.sh @@ -1 +1,25 @@ -# Write your code here \ No newline at end of file +#!/usr/bin/env bash + +echo "Creating project..." +git init project +cd project/ +mkdir -p {resources,src/{database,profile}} +touch README.md resources/{family-picture.jpg,icon.png,logo.png} settings.conf src/program.java +git add . +git commit -m "Initial commit" +sleep 3 +echo "Setup project..." +echo "Welcome to my project" > README.md +rm -r src/profile +rm resources/family-picture.jpg +git commit -a -m "Project setup and removed personal file" +sleep 3 +ls -l resources/ +echo "Setup javascript..." +mv src/program.java src/program.js +# [ERROR] "bash: !': event not found" if exclamation mark included, hence removal +echo "console.log('JavaScript works');" > src/program.js +node src/program.js +git commit -a -m "Setup javascript environment" +ls -l $HOME/ +echo "All done!" diff --git a/task-2/github-username.txt b/task-2/github-username.txt index 5eabca7..46f0a8d 100644 --- a/task-2/github-username.txt +++ b/task-2/github-username.txt @@ -1 +1 @@ - \ No newline at end of file +jivvyjams