d
This commit is contained in:
parent
eb1b267003
commit
4c2571324b
@ -24,10 +24,12 @@ export def clone_crystal [ --reset=false , --pull=false ] string {
|
|||||||
export def clone_nuscripts [ --reset=false , --pull=false ] string {
|
export def clone_nuscripts [ --reset=false , --pull=false ] string {
|
||||||
let $ssha = sshagent_loaded
|
let $ssha = sshagent_loaded
|
||||||
let $dest = $"($env.BASE)/nuscripts"
|
let $dest = $"($env.BASE)/nuscripts"
|
||||||
|
let $dest_org = $"($env.BASE)/nushell"
|
||||||
if $ssha {
|
if $ssha {
|
||||||
let $r = git git_clone nuscripts "git@git.ourworld.tf:despiegk/nuscripts.git"
|
let $r = git git_clone nuscripts "git@git.ourworld.tf:despiegk/nuscripts.git"
|
||||||
rm -f $dest
|
rm -f $dest
|
||||||
ln -s $r $dest
|
ln -s $r $dest
|
||||||
|
rsync -rav --exclude .git $r $dest_org
|
||||||
return $r
|
return $r
|
||||||
} else {
|
} else {
|
||||||
error make { msg: "load ssh-agent" }
|
error make { msg: "load ssh-agent" }
|
||||||
|
Loading…
Reference in New Issue
Block a user