Skip to content

Commit d8b4e4d

Browse files
authored
Merge pull request #72 from semaphoreci/revert-71-skip-host-verification
Revert "Skip host verification in caching script"
2 parents 93a16eb + be85576 commit d8b4e4d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.semaphore/semaphore.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ blocks:
2222
commands:
2323
- git submodule init && git submodule update
2424
- sudo ./tests/support/bats-core/install.sh /usr/local
25-
- rm ~/.ssh/known_hosts # tests should pass even with an empty known_hosts file
2625
- bats tests
2726

2827
- name: Sem version tests

cache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ cache::lftp() {
457457
cache::err "LFTP command can't be empty!"
458458
fi
459459

460-
command_log=$(echo -e "${lftp_command}" | lftp sftp://$SEMAPHORE_CACHE_USERNAME:DUMMY@$SEMAPHORE_CACHE_URL -e 'set sftp:connect-program "ssh -o StrictHostKeyChecking=no -a -x -i '"${SEMAPHORE_CACHE_PRIVATE_KEY_PATH}"'"' 2>&1)
460+
command_log=$(echo -e "${lftp_command}" | lftp sftp://$SEMAPHORE_CACHE_USERNAME:DUMMY@$SEMAPHORE_CACHE_URL -e 'set sftp:connect-program "ssh -a -x -i '"${SEMAPHORE_CACHE_PRIVATE_KEY_PATH}"'"' 2>&1)
461461
command_status=$?
462462

463463
if [[ "${print_log}" == "with_logs" ]] && [ -n "$command_log" ]; then

0 commit comments

Comments
 (0)