From d86043614b6adee66ceece9a01532d47feea3ee3 Mon Sep 17 00:00:00 2001 From: Steven Baltakatei Sandoval Date: Tue, 23 Mar 2021 12:35:47 +0000 Subject: [PATCH] style(unitproc:bktemp-initGitRepo):Comments --- unitproc/bktemp-initGitRepo | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/unitproc/bktemp-initGitRepo b/unitproc/bktemp-initGitRepo index 7a532fa..a222ad3 100644 --- a/unitproc/bktemp-initGitRepo +++ b/unitproc/bktemp-initGitRepo @@ -1,6 +1,10 @@ #!/bin/bash # Desc: Initializes a git repository +#==BEGIN Define script parameters== +#==END Define script parameters== + +#===BEGIN Declare local script functions=== yell() { echo "$0: $*" >&2; } #o Yell, Die, Try Three-Fingered Claw technique die() { yell "$*"; exit 111; } #o Ref/Attrib: https://stackoverflow.com/a/25515370 try() { "$@" || die "cannot $*"; } #o @@ -73,8 +77,9 @@ initGitRepo() { popd || exit 1; #==END create and populate git repository== } # Init Git Repository +#===END Declare local script functions=== -#==BEGIN test code +#==BEGIN sample code tmpDir=/tmp/"$(date +%Y%m%dT%H%M%S%z)"; mkdir -p "$tmpDir"; pushd "$tmpDir" || exit 1; @@ -87,4 +92,7 @@ initGitRepo "$repoURL" "$repoDir" "$remoteName" "$branchName"; unset repoURL repoDir remoteName branchName; yell "STATUS:Done."; -#==END test code +#==END sample code + +# Author: Steven Baltaktei Sandoval +# License: GPLv3+ -- 2.30.2