diff --git a/arctic/Snigdha OS.png b/arctic/Snigdha OS.png new file mode 100644 index 0000000..56265d8 Binary files /dev/null and b/arctic/Snigdha OS.png differ diff --git a/arctic/Snigdha OS.psd b/arctic/Snigdha OS.psd new file mode 100644 index 0000000..7736ef1 Binary files /dev/null and b/arctic/Snigdha OS.psd differ diff --git a/arctic/snigdhaos-hello.png b/arctic/snigdhaos-hello.png new file mode 100644 index 0000000..27d189f Binary files /dev/null and b/arctic/snigdhaos-hello.png differ diff --git a/arctic/snigdhaos-hello.psd b/arctic/snigdhaos-hello.psd new file mode 100644 index 0000000..82c333f Binary files /dev/null and b/arctic/snigdhaos-hello.psd differ diff --git a/arctic/snigdhaos-hello.svg b/arctic/snigdhaos-hello.svg new file mode 100644 index 0000000..286ad1e --- /dev/null +++ b/arctic/snigdhaos-hello.svg @@ -0,0 +1,18 @@ + + Snigdha OS + + + + + + + + + + + + + \ No newline at end of file diff --git a/push.sh b/push.sh index 81202dc..60508a5 100755 --- a/push.sh +++ b/push.sh @@ -1,13 +1,32 @@ #!/bin/bash -# Set the repository URL and branch -REPO_URL="https://github.com/Snigdha-OS/snigdhaos-assets.git" -BRANCH="master" # or "master" depending on your repository's default branch +# Author : Eshan Roy +# URI : https://eshanized.github.io -# Commit message -MESSAGE="⏳ @eshanized continuously updating the repository!" +# NOTE: If you are on Snigdha OS, +# you can install commitizen-go with `sudo pacman -S commitizen-go` +# or `s commitizen-go`. Else you need to install `yay` or `yay-bin` +# to install commitizen. I have written this script only for *Arch Linux. -# Add all files, commit, and push changes -git add . -git commit -m "$MESSAGE" -git push origin $BRANCH +# Function to check if Commitizen is installed +check_commitizen() { + if ! pacman -Qq commitizen-go &> /dev/null; then + echo "Commitizen is not installed. Please install it using 'yay -S commitizen-go'." >&2 + exit 1 + fi +} + +# Function to stage, commit, and push changes +push_to_github() { + git add . + git cz + git push origin master +} + +# Main Function +main() { + check_commitizen + push_to_github +} + +main \ No newline at end of file