Skip to content

Commit 71c9a04

Browse files
committed
make printBuildLogs a local variable
1 parent dcae7a8 commit 71c9a04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ step() {
124124

125125
parseArgs() {
126126
local substituteOnDestination=y
127+
local printBuildLogs=n
127128
while [[ $# -gt 0 ]]; do
128129
case "$1" in
129130
-f | --flake)
@@ -250,7 +251,7 @@ parseArgs() {
250251
shift
251252
done
252253

253-
if [[ ${printBuildLogs-n} == "y" ]]; then
254+
if [[ ${printBuildLogs} == "y" ]]; then
254255
nixOptions+=("-L")
255256
fi
256257

0 commit comments

Comments
 (0)