File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,19 +11,22 @@ NO_CONE_OPTION="$(plugin_read_config NO_CONE "false")"
1111NO_CONE_PARAM=" "
1212[[ $NO_CONE_OPTION = false ]] || NO_CONE_PARAM=" --no-cone"
1313
14- SKIP_SSH_KEYSCAN_OPTION=" $( plugin_read_config SKIP_SSH_KEYSCAN " false" ) "
15-
1614if plugin_read_list_into_result PATHS; then
1715 CHECKOUT_PATHS=(" ${result[@]} " )
1816else
1917 echo " Missing 'paths' option in the plugin"
2018 exit 1
2119fi
2220
23- if [[ " $SKIP_SSH_KEYSCAN_OPTION " != " false" ]]; then
21+ SKIP_SSH_KEYSCAN_OPTION=" $( plugin_read_config SKIP_SSH_KEYSCAN " false" ) "
22+ echo " SKIP_SSH_KEYSCAN_OPTION: $SKIP_SSH_KEYSCAN_OPTION "
23+
24+ if [ " $SKIP_SSH_KEYSCAN_OPTION " = " false" ]; then
2425 echo " Scanning SSH keys for remote git repository"
2526 [[ -d ~ /.ssh ]] || mkdir -p ~ /.ssh
2627 ssh-keyscan " ${BUILDKITE_REPO_SSH_HOST} " >> ~ /.ssh/known_hosts
28+ else
29+ echo " Skipping SSH keyscan"
2730fi
2831
2932echo " Creating sparse-checkout with paths: ${CHECKOUT_PATHS[*]} "
You can’t perform that action at this time.
0 commit comments