aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/i-players.sh31
1 files changed, 31 insertions, 0 deletions
diff --git a/scripts/i-players.sh b/scripts/i-players.sh
new file mode 100755
index 0000000..f61f330
--- /dev/null
+++ b/scripts/i-players.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# SPDX-FileCopyrightText: 2023 Markus Uhlin <maxxe@rpblc.net>
+# SPDX-License-Identifier: ISC
+
+i_players () {
+ local _path _dirs
+
+ _path="${1}"
+ _dirs="
+a b c d e f g h i j k l m
+n o p q r s t u v w x y z
+"
+
+ echo "installing..."
+
+ for dir in ${_dirs}; do
+ printf "creating '%s': " "${_path}/${dir}"
+ if [ -d "${_path}/${dir}" ]; then
+ echo "already exists (good)"
+ else
+ install -d "${_path}/${dir}"
+ if [ $? -eq 0 ]; then
+ echo "done"
+ else
+ echo "error"
+ fi
+ fi
+ done
+}
+
+i_players "${1}"