From 4a54a9fa76b52b536e359cf9344897cc1ce3c1b0 Mon Sep 17 00:00:00 2001 From: eshanized Date: Tue, 16 Apr 2024 18:20:45 +0530 Subject: [PATCH] =?UTF-8?q?=E2=8F=B3=20@eshanized=20updated=20the=20reposi?= =?UTF-8?q?tory=20=F0=9F=8E=89=20!!!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- push.sh | 2 +- usr/bin/exec-terminal | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/push.sh b/push.sh index 354613f..cf4a7f4 100755 --- a/push.sh +++ b/push.sh @@ -25,4 +25,4 @@ MESSAGE="⏳ @eshanized updated the repository 🎉 !!!" # Git Action git add . git commit -m "$MESSAGE" -git push origin "$BRANCH" \ No newline at end of file +# git push origin "$BRANCH" \ No newline at end of file diff --git a/usr/bin/exec-terminal b/usr/bin/exec-terminal index 85f949c..c05767c 100644 --- a/usr/bin/exec-terminal +++ b/usr/bin/exec-terminal @@ -9,3 +9,16 @@ usage() { echo ' -h This help' exit 1 } + +opts='s:h' + +while getopts "${opts}" arg; do + case "${arg}" in + s) EXEC_TERMINAL="$OPTARG" ;; + h | ?) usage 0 ;; + *) + echo "Invalid Argument '${arg}'!" + usage 1 + ;; + esac +done