From 6ec97a7c420e7d0480ee6c29853243cd21e0bad0 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 29 Dec 2020 15:39:40 +0000 Subject: [PATCH] initial commit of skel --- lgsm/functions/command_skeleton.sh | 12 ++++++++++++ lgsm/functions/core_functions.sh | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 lgsm/functions/command_skeleton.sh 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