Skip to content

Commit

Permalink
check if ~/.ssh exists first
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Jul 26, 2023
1 parent a67ec01 commit a84d886
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/functional/addons-install-test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ create_file() {
echo "Running terminus connection:set ${SITE_ENV} sftp"
terminus connection:set ${SITE_ENV} sftp

# Check if ~/.ssh directory exists
if [ ! -d ~/.ssh ]; then
mkdir ~/.ssh
chmod 700 ~/.ssh
fi

# Check if ~/.ssh/config file exists
if [ ! -f ~/.ssh/config ]; then
touch ~/.ssh/config
Expand Down

0 comments on commit a84d886

Please sign in to comment.