This commit is contained in:
Andras Bacsai
2023-05-15 08:53:56 +02:00
parent 86afa200cd
commit 845a8e5076
8 changed files with 13 additions and 23 deletions

View File

@@ -21,7 +21,7 @@ class CheckProxySettingsInSync
$output = instantRemoteProcess([
// Folder exists, in ~/projects/<folder-name>
'if [ -d "projects/'.$folder_name.'" ]; then echo "true"; else echo "false"; fi',
'if [ -d "projects/' . $folder_name . '" ]; then echo "true"; else echo "false"; fi',
// Container of name <container-name> is running
<<<EOT
[[ "$(docker inspect -f '{{.State.Running}}' $container_name 2>/dev/null)" == "true" ]] && echo "true" || echo "false"
@@ -30,6 +30,6 @@ class CheckProxySettingsInSync
return collect(
explode(PHP_EOL, $output)
)->every(fn($output) => $output === 'true');
)->every(fn ($output) => $output === 'true');
}
}