Skip to content

Commit 8dcb640

Browse files
authored
Fix command check comparisons (#23)
Because I can perl..
1 parent ef88851 commit 8dcb640

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

docker/command.cgi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ our (%in);
1212
my $command = $in{'c'};
1313

1414
my $err;
15-
if ($command == 'start') {
15+
if ($command eq 'start') {
1616
$err = container_command($in{'container'}, 'start');
1717
}
1818

19-
if ($command == 'stop') {
19+
if ($command eq 'stop') {
2020
$err = container_command($in{'container'}, 'stop');
2121
}
2222

23-
if ($command == 'restart') {
23+
if ($command eq 'restart') {
2424
$err = container_command($in{'container'}, 'restart')
2525
}
2626

0 commit comments

Comments
 (0)