mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-07 23:09:26 +00:00
configdb - code cleanup
git-svn-id: https://svn.fhem.de/fhem/trunk@5585 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
297de7b789
commit
90f77bcf28
@ -183,7 +183,7 @@ sub CommandConfigdb($$) {
|
||||
when ('filedelete') {
|
||||
return "\n Syntax: configdb fileexport <pathToFile>" if @a != 2;
|
||||
my $filename;
|
||||
if(substr($param1,0,1) eq '/') {
|
||||
if($param1 =~ m,^[./],) {
|
||||
$filename = $param1;
|
||||
} else {
|
||||
$filename = $attr{global}{modpath};
|
||||
@ -195,7 +195,7 @@ sub CommandConfigdb($$) {
|
||||
when ('fileexport') {
|
||||
return "\n Syntax: configdb fileexport <pathToFile>" if @a != 2;
|
||||
my $filename;
|
||||
if(substr($param1,0,1) eq '/') {
|
||||
if($param1 =~ m,^[./],) {
|
||||
$filename = $param1;
|
||||
} else {
|
||||
$filename = $attr{global}{modpath};
|
||||
@ -207,7 +207,7 @@ sub CommandConfigdb($$) {
|
||||
when ('fileimport') {
|
||||
return "\n Syntax: configdb fileimport <pathToFile>" if @a != 2;
|
||||
my $filename;
|
||||
if(substr($param1,0,1) eq '/') {
|
||||
if($param1 =~ m,^[./],) {
|
||||
$filename = $param1;
|
||||
} else {
|
||||
$filename = $attr{global}{modpath};
|
||||
|
Loading…
x
Reference in New Issue
Block a user