From 9d7fcf8cf4fed5537133c277cdfdad2223dadfa6 Mon Sep 17 00:00:00 2001 From: asubowo Date: Sat, 20 Apr 2024 16:03:21 -0400 Subject: [PATCH 01/13] broken stuff --- .gitignore | 1 + README.md | 6 +++ {tests => bash/tests}/utils/compmd_test.sh | 0 {tests => bash/tests}/utils/test1.txt | 0 {tests => bash/tests}/utils/test2.txt | 0 {tests => bash/tests}/utils/test3.txt | 0 {tests => bash/tests}/utils/test4.sh | 0 bash/utils/background.sh | 25 ++++++++++ {utils => bash/utils}/comphash.sh | 6 +-- bash/utils/dialogbuilder.sh | 14 ++++++ bash/utils/initdocker.sh | 56 ++++++++++++++++++++++ {utils => bash/utils}/logging.sh | 14 +++--- sourcecore.sh | 27 +++++++++++ 13 files changed, 138 insertions(+), 11 deletions(-) create mode 100644 .gitignore rename {tests => bash/tests}/utils/compmd_test.sh (100%) rename {tests => bash/tests}/utils/test1.txt (100%) rename {tests => bash/tests}/utils/test2.txt (100%) rename {tests => bash/tests}/utils/test3.txt (100%) rename {tests => bash/tests}/utils/test4.sh (100%) create mode 100644 bash/utils/background.sh rename {utils => bash/utils}/comphash.sh (82%) create mode 100644 bash/utils/dialogbuilder.sh create mode 100644 bash/utils/initdocker.sh rename {utils => bash/utils}/logging.sh (74%) create mode 100755 sourcecore.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..496ee2c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.DS_Store \ No newline at end of file diff --git a/README.md b/README.md index 69a2771..f32e7eb 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,8 @@ # commonCoreSh A collection of Bash scripts/utilities that one can source in their own bash scripts. + +# HOW TO USE +Use at your own direction, so long it is NOT utilized in closed source applications. + +Make sure you download the repository as is, and to not change any files in the resulting directories. +If you want to take advantage of these scripts, source `sourcecore.sh`, or consider sourcing it in your profile. \ No newline at end of file diff --git a/tests/utils/compmd_test.sh b/bash/tests/utils/compmd_test.sh similarity index 100% rename from tests/utils/compmd_test.sh rename to bash/tests/utils/compmd_test.sh diff --git a/tests/utils/test1.txt b/bash/tests/utils/test1.txt similarity index 100% rename from tests/utils/test1.txt rename to bash/tests/utils/test1.txt diff --git a/tests/utils/test2.txt b/bash/tests/utils/test2.txt similarity index 100% rename from tests/utils/test2.txt rename to bash/tests/utils/test2.txt diff --git a/tests/utils/test3.txt b/bash/tests/utils/test3.txt similarity index 100% rename from tests/utils/test3.txt rename to bash/tests/utils/test3.txt diff --git a/tests/utils/test4.sh b/bash/tests/utils/test4.sh similarity index 100% rename from tests/utils/test4.sh rename to bash/tests/utils/test4.sh diff --git a/bash/utils/background.sh b/bash/utils/background.sh new file mode 100644 index 0000000..8b66ca7 --- /dev/null +++ b/bash/utils/background.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# Author: Andrew Subowo +# Some common core scripts I use on a day to day basis that I find helpful +# @_subtype / subtype / 2023 +# To use the functions in this script, merely source it (e.g. source