Skip to content

Commit

Permalink
Merge pull request #100 from woocommerce/fix/99
Browse files Browse the repository at this point in the history
Fix "using ${var} in strings is deprecated" notice
  • Loading branch information
rawdreeg authored Apr 15, 2024
2 parents 472647d + 0244a9c commit 7ebb15c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function maybe_replace( $product, $folder, $version ) {
$cleanup = sprintf( 'find ./%1$s -name "*.php.bak" -type f -delete', $path );
} else {
$command = $sed_command . $local_path;
$cleanup = "unlink ${local_path}.bak";
$cleanup = sprintf('unlink %s.bak', $local_path);
}
Utils::exec_sprintf( $command );
Utils::exec_sprintf( $cleanup );
Expand Down

0 comments on commit 7ebb15c

Please sign in to comment.