From: hackbard Date: Sun, 4 Oct 2015 11:08:00 +0000 (+0000) Subject: log fiel name bugfix X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4105b8683216a18182588e0ea657d50f80071bd9;p=outofuni%2Fbackup.git log fiel name bugfix --- diff --git a/bin/backup b/bin/backup index cf8c584..e843da3 100755 --- a/bin/backup +++ b/bin/backup @@ -1,7 +1,7 @@ #!/bin/bash function log { - conf=`basename $config | sed 's/\.config$//'` + conf=`basename $config | sed 's/\.conf$//'` [ "$dolog" = "1" ] && echo "`date` - $@" >> $logdir/${conf}.log }