Skip to content

Commit

Permalink
master CreateCommand/PackCreateCommand: explicit check for true
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwe4 committed Jan 30, 2025
1 parent bd33106 commit cc7d684
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/Commands/Instances/CreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int
$host = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "host="))[1];
$https_proxy = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "https_proxy="))[1];
$http_scheme = "http://";
if ($https_proxy) {
if ($https_proxy === "true") {
$http_scheme = "https://";
}
$instance_path = $options["target"] . "/" . $options["name"];
Expand Down
2 changes: 1 addition & 1 deletion app/src/Commands/Pack/PackCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public function execute(InputInterface $input, OutputInterface $output) : int
$host = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "host"))[1];
$https_proxy = explode("=", $this->filesystem->getLineInFile("/etc/doil/doil.conf", "https_proxy="))[1];
$http_scheme = "http://";
if ($https_proxy) {
if ($https_proxy === "true") {
$http_scheme = "https://";
}
$instance_path = $options["target"] . "/" . $options["name"];
Expand Down

0 comments on commit cc7d684

Please sign in to comment.