File tree Expand file tree Collapse file tree
overlay/etc/nu/scripts/bf-nginx-php Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- 8.1.6
1+ 8.1.7
Original file line number Diff line number Diff line change @@ -6,20 +6,23 @@ export def get_override_values []: nothing -> record {
66 let ini_override = bf env PHP_INI_OVERRIDE_D
77
88 # if the override path does not exist return nothing
9- if not ($ini_override | path exists ) {
10- return
9+ if ($ini_override | bf fs is_not_dir ) {
10+ return {}
1111 }
1212
1313 # load override json files,
1414 # sorted alphabetically
1515 # read as json
1616 # reduce array so later values override earlier values
17- return $" ($ini_override )/*.json"
17+ let override_values = $" ($ini_override )/*.json"
1818 | into glob
1919 | ls -- full-paths $in
2020 | get name
2121 | sort -- natural
2222 | each {|x | bf fs read $x | from json }
2323 | reduce {|it , acc | $acc | merge $it }
24+ | sort -- natural
2425 | into record
26+
27+ return $override_values
2528}
You can’t perform that action at this time.
0 commit comments