diff --git a/lgsm/functions/command_skeleton.sh b/lgsm/functions/command_skeleton.sh new file mode 100644 index 000000000..ba1d759d6 --- /dev/null +++ b/lgsm/functions/command_skeleton.sh @@ -0,0 +1,12 @@ +#!/bin/bash +# LinuxGSM command_skeleton.sh function +# Author: Daniel Gibbs +# Website: https://linuxgsm.com +# Description: Creates an copy of a game servers directorys. + + +fn_print_dots "" +check.sh + +# Find all directorys and create them in the skel directory +find ${rootdir} -type d -not \( -path ./skel -prune \) diff --git a/lgsm/functions/core_functions.sh b/lgsm/functions/core_functions.sh index e4da9830f..942eb6bda 100755 --- a/lgsm/functions/core_functions.sh +++ b/lgsm/functions/core_functions.sh @@ -155,6 +155,11 @@ functionfile="${FUNCNAME[0]}" fn_fetch_function } +command_skeleton.sh(){ +functionfile="${FUNCNAME[0]}" +fn_fetch_function +} + command_wipe.sh(){ functionfile="${FUNCNAME[0]}" fn_fetch_function