From b8f1d2c6515ca35ced0d2f058f7ee2b9e1c8d69f Mon Sep 17 00:00:00 2001 From: Alain Schlesser Date: Mon, 18 Dec 2023 18:36:02 +0000 Subject: [PATCH] Rename the folder as needed --- src/Context/FeatureContext.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Context/FeatureContext.php b/src/Context/FeatureContext.php index 353ddf60..a2dc58e5 100644 --- a/src/Context/FeatureContext.php +++ b/src/Context/FeatureContext.php @@ -364,6 +364,13 @@ private static function download_sqlite_plugin( $dir ) { $error_message = $zip->getStatusString(); throw new RuntimeException( sprintf( 'Failed to open the zip file: %s', $error_message ) ); } + + // For the release downloaded from GitHub, the unzipped folder will contain the version number. + // We're renaming the folder here for consistency's sake. + rename( + $dir . '/sqlite-database-integration-2.1.3/', + $dir . '/sqlite-database-integration/' + ); } /**