aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2022-04-17 22:43:29 +0200
committerPatrick Spek <p.spek@tyil.nl>2022-04-17 22:43:29 +0200
commitfa150b95d3d9d9b3ea51a03e9243d2b4b2a6c761 (patch)
tree7345146bdf224dea037abf340b117d8476ffc2de /lib
parente281eedb6f6e0fda791a45145f9ebc0388ee4e45 (diff)
Add license
Diffstat (limited to 'lib')
-rw-r--r--lib/logging.bash4
-rw-r--r--lib/main.bash4
-rw-r--r--lib/subcommands/add.bash4
-rw-r--r--lib/subcommands/bootstrap.bash4
-rw-r--r--lib/subcommands/del.bash4
-rw-r--r--lib/subcommands/ssh.bash4
-rw-r--r--lib/subcommands/sync.bash4
-rw-r--r--lib/subcommands/sysinfo.bash4
-rw-r--r--lib/util.bash4
9 files changed, 36 insertions, 0 deletions
diff --git a/lib/logging.bash b/lib/logging.bash
index 05b95c6..c120abf 100644
--- a/lib/logging.bash
+++ b/lib/logging.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
# The base function to output logging information. This should *not* be used
# directly, but the helper functions can be used safely.
log() {
diff --git a/lib/main.bash b/lib/main.bash
index 851da1d..227512a 100644
--- a/lib/main.bash
+++ b/lib/main.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
# shellcheck source=lib/util.bash
source "$(dirname "${BASH_SOURCE[0]}")/util.bash"
diff --git a/lib/subcommands/add.bash b/lib/subcommands/add.bash
index b48ef10..590c8ec 100644
--- a/lib/subcommands/add.bash
+++ b/lib/subcommands/add.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
export BASHTARD_PLAYBOOK="$1" ; shift
diff --git a/lib/subcommands/bootstrap.bash b/lib/subcommands/bootstrap.bash
index 8750134..343547d 100644
--- a/lib/subcommands/bootstrap.bash
+++ b/lib/subcommands/bootstrap.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
remote="$1" ; shift
diff --git a/lib/subcommands/del.bash b/lib/subcommands/del.bash
index 3896fec..9f01c3c 100644
--- a/lib/subcommands/del.bash
+++ b/lib/subcommands/del.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
export BASHTARD_PLAYBOOK="$1" ; shift
diff --git a/lib/subcommands/ssh.bash b/lib/subcommands/ssh.bash
index 19ead9a..0eb4be8 100644
--- a/lib/subcommands/ssh.bash
+++ b/lib/subcommands/ssh.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
local ssh="$(config app.ssh)"
diff --git a/lib/subcommands/sync.bash b/lib/subcommands/sync.bash
index 8fce0b6..7722e2d 100644
--- a/lib/subcommands/sync.bash
+++ b/lib/subcommands/sync.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand()
{
export BASHTARD_PLAYBOOK="$1" ; shift
diff --git a/lib/subcommands/sysinfo.bash b/lib/subcommands/sysinfo.bash
index 7b83e32..8aa237e 100644
--- a/lib/subcommands/sysinfo.bash
+++ b/lib/subcommands/sysinfo.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
subcommand() {
printf "%-15s %s\n" "etcdir" "$BASHTARD_ETCDIR"
printf "%-15s %s\n" "libdir" "$BASHTARD_LIBDIR"
diff --git a/lib/util.bash b/lib/util.bash
index 98bdc95..ea9ac3b 100644
--- a/lib/util.bash
+++ b/lib/util.bash
@@ -1,5 +1,9 @@
#!/usr/bin/env bash
+# SPDX-FileCopyrightText: 2022 Patrick Spek <p.spek@tyil.nl>
+#
+# SPDX-License-Identifier: AGPL-3.0-or-later
+
# Change the working directory. In usage, this is the same as using cd,
# however, it will make additional checks to ensure everything is going fine.
chgdir() {