Skip to content

Commit

Permalink
Fix "using ${var} in strings is deprecated" notice
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdreeg authored Apr 10, 2024
1 parent 472647d commit 0244a9c
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 0244a9c

Please sign in to comment.