Skip to content

Commit

Permalink
Fix: possible issue with .git in middle of the url?
Browse files Browse the repository at this point in the history
  • Loading branch information
FMotalleb committed Apr 20, 2024
1 parent 0380a8c commit 302a065
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions action.nu
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ export module plugin-list {
def "get-toml" [
branch: string # branch name (e.g. main)
]: string -> record {
let git_repo = ($in | str replace ".git" "") # github repository url (e.g. https://github.com/FMotalleb/nu_plugin_port_scan)

let git_repo = ($in | str replace --regex ".git$" "") # github repository url (e.g. https://github.com/FMotalleb/nu_plugin_port_scan)
let toml_file_address: string = (get-raw-toml-address $git_repo $branch | url join)
try {
return (http get --raw $toml_file_address | from toml)
Expand Down

0 comments on commit 302a065

Please sign in to comment.