Skip to content

Commit

Permalink
fix(install): change user settings during installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamir committed Aug 30, 2023
1 parent 973a8cc commit 98e020b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ Please make sure you have nvim v$REQUIRED_NVIM_VERSION_LEGACY installed at the v
if (-not $USE_SSH) {
info -Msg "Changing default fetching method to HTTPS..."
safe_execute -WithCmd {
(Get-Content "$env:CCDEST_DIR\lua\core\settings.lua") |
(Get-Content "$env:CCDEST_DIR\lua\user\settings.lua") |
ForEach-Object { $_ -replace '\["use_ssh"\] = true','["use_ssh"] = false' } |
Set-Content "$env:CCDEST_DIR\lua\core\settings.lua"
Set-Content "$env:CCDEST_DIR\lua\user\settings.lua"
}
}

Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ cd "${DEST_DIR}" || return

if [[ "${USE_SSH}" -eq "0" ]]; then
info "Changing default fetching method to HTTPS..."
execute "perl" "-pi" "-e" "s/\[\"use_ssh\"\] \= true/\[\"use_ssh\"\] \= false/g" "${DEST_DIR}/lua/core/settings.lua"
execute "perl" "-pi" "-e" "s/\[\"use_ssh\"\] \= true/\[\"use_ssh\"\] \= false/g" "${DEST_DIR}/lua/user/settings.lua"
fi

info "Spawning Neovim and fetching plugins... (You'll be redirected shortly)"
Expand Down

0 comments on commit 98e020b

Please sign in to comment.