Browse Source

mkdr backup dir

pull/1477/head
Daniel Gibbs 8 years ago
parent
commit
ce59ea792c
  1. 1
      lgsm/functions/command_update_linuxgsm.sh

1
lgsm/functions/command_update_linuxgsm.sh

@ -44,6 +44,7 @@ script_diff=$(diff <(sed '/shortname/d;/servername/d;/gamename/d' "${functionsdi
if [ "${script_diff}" != "" ]; then if [ "${script_diff}" != "" ]; then
fn_print_update_eol_nl fn_print_update_eol_nl
echo -ne " backup ${selfname}...\c" echo -ne " backup ${selfname}...\c"
mkdir -p "${backupdir}/script/"
cp "${rootdir}/${selfname}" "${backupdir}/script/${selfname}-$(date +"%m_%d_%Y_%M").bak" cp "${rootdir}/${selfname}" "${backupdir}/script/${selfname}-$(date +"%m_%d_%Y_%M").bak"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
fn_print_fail_eol_nl fn_print_fail_eol_nl

Loading…
Cancel
Save