Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix(gradle-wrapper): quote params (#11773)
  • Loading branch information
rarkins committed Sep 16, 2021
1 parent a8ddcae commit 73d617e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions 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';
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit 73d617e

Please sign in to comment.