Skip to content

Commit

Permalink
remove extra () around the if assignment of url in grab
Browse files Browse the repository at this point in the history
  • Loading branch information
amtoine committed Jun 29, 2023
1 parent e543fe5 commit 18f0db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gm/mod.nu
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@ export def grab [
| update project { str replace --all '\/' '-'}
)

let url = (if $ssh {
let url = if $ssh {
$"git@($project.host):($project.user)/($project.project).git"
} else {
$"https://($project.host)/($project.user)/($project.project).git"
})
}

let local = (get root dir | path join $project.host $project.user $project.project)

Expand Down
1 change: 1 addition & 0 deletions src/sugar/dotfiles.nu
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export def-env edit [] {
| lines
| input list --fuzzy
$"Please (ansi yellow_italic)choose a config(ansi reset) file to (ansi blue_underline)edit(ansi reset): "
| into string
)
if ($choice | is-empty) {
return
Expand Down

0 comments on commit 18f0db8

Please sign in to comment.