diff options
author | Patrick Spek <p.spek@tyil.nl> | 2022-04-15 16:32:43 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2022-04-15 16:32:43 +0200 |
commit | d8a2f732b300cdbb892e0878fe87dbb7a0ef6d03 (patch) | |
tree | d364845506af8f3080c79df9a91bb3e32cc4b4d8 /lib/subcommands/sysinfo.bash |
Initial commit
Diffstat (limited to 'lib/subcommands/sysinfo.bash')
-rw-r--r-- | lib/subcommands/sysinfo.bash | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/subcommands/sysinfo.bash b/lib/subcommands/sysinfo.bash new file mode 100644 index 0000000..5010798 --- /dev/null +++ b/lib/subcommands/sysinfo.bash @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +subcommand() { + printf "%-15s %s\n" "basedir" "$BASHTARD_BASEDIR" + printf "%-15s %s\n" "etcdir" "$BASHTARD_ETCDIR" + + for key in "${!BASHTARD_PLATFORM[@]}" + do + printf "%-15s %s\n" "$key" "${BASHTARD_PLATFORM[$key]}" + done +} |