mirror of
https://github.com/Snigdha-OS/snigdhaos-backgrounds.git
synced 2025-09-05 12:56:37 +02:00
🐛 fix: remove scope
Some checks failed
Check Conventional Commit / check-commit-message (push) Has been cancelled
Some checks failed
Check Conventional Commit / check-commit-message (push) Has been cancelled
This commit is contained in:
13
push.sh
13
push.sh
@@ -37,13 +37,6 @@ type_emoji=${type}
|
|||||||
type=${type_emoji#* }
|
type=${type_emoji#* }
|
||||||
emoji=${type_emoji% *}
|
emoji=${type_emoji% *}
|
||||||
|
|
||||||
# Prompt the user to enter a scope (optional)
|
|
||||||
read -p "Enter a scope (optional): " scope
|
|
||||||
scope_part=""
|
|
||||||
if [ -n "$scope" ]; then
|
|
||||||
scope_part="($scope)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prompt the user to enter a short description
|
# Prompt the user to enter a short description
|
||||||
read -p "Enter a short description: " desc
|
read -p "Enter a short description: " desc
|
||||||
if [ -z "$desc" ]; then
|
if [ -z "$desc" ]; then
|
||||||
@@ -54,13 +47,11 @@ fi
|
|||||||
read -p "Enter a longer description (optional): " long_desc
|
read -p "Enter a longer description (optional): " long_desc
|
||||||
|
|
||||||
# Create the commit message
|
# Create the commit message
|
||||||
commit_msg="$emoji $type$scope_part: $desc"
|
commit_msg="$emoji $type: $desc"
|
||||||
|
|
||||||
# If a longer description was provided, add it to the commit message
|
# If a longer description was provided, add it to the commit message
|
||||||
if [ -n "$long_desc" ]; then
|
if [ -n "$long_desc" ]; then
|
||||||
commit_msg+="
|
commit_msg+="\n\n$long_desc"
|
||||||
|
|
||||||
$long_desc"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Print the commit message to the console
|
# Print the commit message to the console
|
||||||
|
Reference in New Issue
Block a user