fix: expose correct dryrun command (#2006)

This commit is contained in:
Emanuele De Cupis
2026-02-22 18:20:27 +01:00
committed by GitHub
parent 0424e15a2a
commit 7ad55d00d1
+5 -2
View File
@@ -466,13 +466,16 @@ run_distrobox()
result_command="${result_command} --additional-flags $(sanitize_variable "${flag}")"
done
fi
if [ "${dryrun}" -ne 0 ]; then
result_command="${result_command} --dry-run"
fi
# Execute the distrobox-create command
eval "${result_command}"
if [ "${dryrun}" -ne 0 ]; then
echo "${result_command}"
return
fi
eval "${result_command}"
# If we need to start immediately, do it, so that the container
# is ready to be entered.