From b851ddcc0cc01067ec93f8e0d09ea0ebfc6b3d36 Mon Sep 17 00:00:00 2001 From: Austin Ginder Date: Sun, 11 Jul 2021 08:49:46 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20Quicksave=20output?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/local-scripts/quicksave-add.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/local-scripts/quicksave-add.php b/lib/local-scripts/quicksave-add.php index d84da92..035d219 100644 --- a/lib/local-scripts/quicksave-add.php +++ b/lib/local-scripts/quicksave-add.php @@ -27,7 +27,7 @@ $lookup = ( new CaptainCore\Sites )->where( [ "site" => $site ] ); // Error if site not found if ( count( $lookup ) == 0 ) { - echo "Error: Site '$site' not found."; + echo "Error: Site '$site' not found.\n"; return; } @@ -41,7 +41,7 @@ $environment = ( new CaptainCore\Environments )->get( $environment_id ); $json = "{$_SERVER['HOME']}/.captaincore/config.json"; if ( ! file_exists( $json ) ) { - echo "Error: Configuration file not found."; + echo "Error: Configuration file not found.\n"; return; } @@ -76,7 +76,7 @@ $git_status = trim ( shell_exec( "cd {$site_path}; git status -s") ); if ( $git_status == "" and $force != true ) { # Skip quicksave as nothing changed - echo "Quicksave skipped as nothing changed"; + echo "Quicksave skipped as nothing changed\n"; return; }