Skip to content

Commit

Permalink
display script name without prefix and sequence number, make it bette…
Browse files Browse the repository at this point in the history
…r readable
  • Loading branch information
Ladislav Slezak committed Feb 1, 2013
1 parent 8679029 commit 65270a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/Wagon.ycp
Expand Up @@ -912,7 +912,13 @@ It is safe to abort the migration now.</b></li>
y2milestone("Executing hook script: %1", script);

// %1 is a file name
UI::OpenDialog(`Label(sformat(_("Executing script %1 ..."), script)));
string display_script = regexpsub(script, "^" + step + "_[0-9]+_(.*)", "\\1");
if (display_script == nil)
{
display_script = script;
}

UI::OpenDialog(`Label(sformat(_("Executing script %1 ..."), display_script)));
integer ret = (integer)SCR::Execute(.target.bash, hook_dir + "/" + script);
UI::CloseDialog();

Expand Down

0 comments on commit 65270a1

Please sign in to comment.