fix(admin): stop dry runs before resolving the target volume
This commit is contained in:
@@ -2988,6 +2988,10 @@ cmd_admin() {
|
||||
if ! is_recovery; then
|
||||
error_exit "Admin creation must run from Recovery mode."
|
||||
fi
|
||||
if [ "$DRY_RUN" = true ]; then
|
||||
admin_only_mode "the selected Data volume"
|
||||
return
|
||||
fi
|
||||
header "Create Local Admin User"
|
||||
local data_mount
|
||||
data_mount=$(resolve_data_volume)
|
||||
|
||||
Reference in New Issue
Block a user