Skip to content

Commit

Permalink
make printBuildLogs a local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 18, 2024
1 parent c928f74 commit 95efb19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ step() {

parseArgs() {
local substituteOnDestination=y
local printBuildLogs=n
while [[ $# -gt 0 ]]; do
case "$1" in
-f | --flake)
Expand Down Expand Up @@ -250,7 +251,7 @@ parseArgs() {
shift
done

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

Expand Down

0 comments on commit 95efb19

Please sign in to comment.