X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/a211aa1b371c8a4cdc08ed47f3852c4d3081e502..0a18766caadb944db32b21891fd4cdec60410783:/unitproc/bktemp-initGitRepo?ds=sidebyside diff --git a/unitproc/bktemp-initGitRepo b/unitproc/bktemp-initGitRepo index 7a532fa..e5d117c 100644 --- a/unitproc/bktemp-initGitRepo +++ b/unitproc/bktemp-initGitRepo @@ -1,6 +1,8 @@ #!/bin/bash # Desc: Initializes a git repository +#==BEGIN 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 +75,10 @@ initGitRepo() { popd || exit 1; #==END create and populate git repository== } # Init Git Repository +#===END Declare local script functions=== +#==END Define script parameters== -#==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 +91,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+