mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 18:03:51 +01:00
7 lines
265 B
Plaintext
7 lines
265 B
Plaintext
|
# Check if 'seeds' directory exists. If not, create one.
|
||
|
let seeds_exists = "./seeds" | path exists
|
||
|
if $seeds_exists == false { mkdir seeds }
|
||
|
|
||
|
# Gather all "*.nu" files from '../..' and copy them into 'seeds'
|
||
|
ls ../../**/*.nu | get name | each {|f| cp $f ./seeds/}
|