Skip to content
Permalink
Browse files
fix(gradle-wrapper): quote params (#11773)
  • Loading branch information
rarkins committed Sep 16, 2021
1 parent a8ddcae commit 73d617e00928f7a4457196865a135c3e9350f991
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/manager/gradle-wrapper/artifacts.ts
@@ -1,3 +1,4 @@
import { quote } from 'shlex';
import { resolve } from 'upath';
import { getGlobalConfig } from '../../config/global';
import { TEMPORARY_ERROR } from '../../constants/error-messages';
@@ -80,10 +81,10 @@ export async function updateArtifacts({
newPackageFileContent.replace(config.newValue, config.currentValue)
);
const checksum = await getDistributionChecksum(distributionUrl);
cmd += ` --gradle-distribution-sha256-sum ${checksum}`;
cmd += ` --gradle-distribution-sha256-sum ${quote(checksum)}`;
}
} else {
cmd += ` --gradle-version ${config.newValue}`;
cmd += ` --gradle-version ${quote(config.newValue)}`;
}
logger.debug(`Updating gradle wrapper: "${cmd}"`);
const execOptions: ExecOptions = {

0 comments on commit 73d617e

Please sign in to comment.