Skip to content

Commit

Permalink
fix: delete remaining main.zip
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 16, 2024
1 parent b4389da commit 07df661
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions App/Commands/PwInstall.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ public function stepProfile()
// offer to download the rockfrontend site profile
$zip = 'https://github.com/baumrock/site-rockfrontend/archive/refs/heads/main.zip';
$exists = is_dir("site-rockfrontend-main");
if (file_exists('main.zip')) $this->exec('rm main.zip');
if (!$exists && $this->confirm("Download Site-Profile \"RockFrontend + UIkit + TailwindCSS\" from $zip?")) {
if (!file_exists('main.zip')) {
$this->exec("wget $zip");
}
$this->write("Site Profile already exists");
$this->exec("wget $zip");
$this->write('Extracting files ...');
$this->exec('unzip -q main.zip');
$this->nextStep(true, true);
Expand Down

0 comments on commit 07df661

Please sign in to comment.