From: Steven Baltakatei Sandoval Date: Tue, 23 Mar 2021 12:35:47 +0000 (+0000) Subject: style(unitproc:bktemp-initGitRepo):Comments X-Git-Tag: 0.4.3~2 X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/commitdiff_plain/d86043614b6adee66ceece9a01532d47feea3ee3?ds=inline;hp=-c style(unitproc:bktemp-initGitRepo):Comments --- d86043614b6adee66ceece9a01532d47feea3ee3 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+