diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2023-12-21 20:47:19 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2023-12-21 20:47:19 +0100 |
commit | 21e8cdb73470e11508aecaae20830af3fe03e10b (patch) | |
tree | ff5559c83cf8e23c6c905228d6d418279eed2987 | |
parent | 497d32f7d51f72da32a6ae2bf31253645bba0fb9 (diff) |
i-players.sh -- initial revision
-rwxr-xr-x | scripts/i-players.sh | 31 |
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}" |