Skip to content

Commit 5c19c82

Browse files
authored
fix(script-v2): Use nushell built-ins (#528)
1 parent 5f9c608 commit 5c19c82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/script/v2/script.nu

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ def main [config: string]: nothing -> nothing {
77
| default [] snippets
88

99
cd $'($env.CONFIG_DIRECTORY)/scripts'
10-
^find . -type f -execdir chmod +x '{}' +
10+
ls
11+
| where { ($in | path type) == 'file' }
12+
| each { chmod +x $in }
1113

1214
$config.scripts
1315
| each {|script|

0 commit comments

Comments
 (0)