Skip to content

Commit 8efdf0c

Browse files
Mic92mergify[bot]
authored andcommitted
fix more instances of snake_case
1 parent 8582ed6 commit 8efdf0c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/nixos-anywhere.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ while [[ $# -gt 0 ]]; do
166166
phases[disko]=0
167167
phases[install]=0
168168
phases[reboot]=0
169-
IFS=, read -r -a phase_list <<<"$2"
170-
for phase in "${phase_list[@]}"; do
169+
IFS=, read -r -a phaseList <<<"$2"
170+
for phase in "${phaseList[@]}"; do
171171
if [[ ${phases[$phase]:-unset} == unset ]]; then
172172
abort "Unknown phase: $phase"
173173
fi
@@ -326,17 +326,17 @@ uploadSshKey() {
326326

327327
importFacts() {
328328
step Gathering machine facts
329-
local facts filtered_facts
329+
local facts filteredFacts
330330
if ! facts=$(runSsh -o ConnectTimeout=10 enableDebug=$enableDebug sh -- <"$here"/get-facts.sh); then
331331
exit 1
332332
fi
333-
filtered_facts=$(echo "$facts" | grep -E '^(has|is)[A-Za-z0-9_]+=\S+')
334-
if [[ -z $filtered_facts ]]; then
333+
filteredFacts=$(echo "$facts" | grep -E '^(has|is)[A-Za-z0-9_]+=\S+')
334+
if [[ -z $filteredFacts ]]; then
335335
abort "Retrieving host facts via ssh failed. Check with --debug for the root cause, unless you have done so already"
336336
fi
337337
# make facts available in script
338338
# shellcheck disable=SC2046
339-
export $(echo "$filtered_facts" | xargs)
339+
export $(echo "$filteredFacts" | xargs)
340340
}
341341

342342
runKexec() {

0 commit comments

Comments
 (0)