Merge pull request #3 from imranismail/patch-1

chmod .netrc to private
This commit is contained in:
Brad Rydzewski
2020-04-12 23:23:43 -04:00
committed by GitHub

View File

@@ -36,6 +36,7 @@ func Script(commands []string) string {
const optionScript = `
if [ ! -z "${DRONE_NETRC_FILE}" ]; then
echo $DRONE_NETRC_FILE > $HOME/.netrc
chmod 600 $HOME/.netrc
fi
unset DRONE_SCRIPT