mirror of
https://github.com/GameServerManagers/LinuxGSM
synced 2026-08-18 20:23:04 -04:00
- core_dl.sh: use array assignment for steamcmdcommand instead of read -r -a to avoid word-splitting on paths - fix_st.sh: correct module header typo (fix_ts.sh -> fix_st.sh) - command_skeleton.sh: fix grammar 'Creates an copy' -> 'Creates a copy' - serverlist-validate-game-icons.sh: anchor grep to start-of-line and require trailing comma to prevent false positives (e.g. 'tf' matching 'tf2' entries) - cs2server/_default.cfg: remove duplicate ntfy alert settings block
26 lines
825 B
Bash
Executable file
26 lines
825 B
Bash
Executable file
#!/bin/bash
|
|
# LinuxGSM command_skeleton.sh module
|
|
# Author: Daniel Gibbs
|
|
# Contributors: https://linuxgsm.com/contrib
|
|
# Website: https://linuxgsm.com
|
|
# Description: Creates a copy of a game server directories.
|
|
|
|
commandname="SKELETON"
|
|
commandaction="Skeleton"
|
|
moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
|
|
fn_firstcommand_set
|
|
|
|
fn_print_dots "Creating skeleton directory"
|
|
check.sh
|
|
|
|
# Find all directories and create them in the skel directory
|
|
find "${rootdir}" -type d -not \( -path ./skel -prune \) | cpio -pdvm skel 2> /dev/null
|
|
exitcode=$?
|
|
if [ "${exitcode}" -ne 0 ]; then
|
|
fn_print_fail_nl "Creating skeleton directory"
|
|
fn_script_log_fail "Creating skeleton directory"
|
|
else
|
|
fn_print_ok_nl "Creating skeleton directory: ./skel"
|
|
fn_script_log_pass "Creating skeleton directory: ./skel"
|
|
fi
|
|
core_exit.sh
|