diff options
Diffstat (limited to 'usr.sbin/pkg_manage/pkg_ui.c')
-rw-r--r-- | usr.sbin/pkg_manage/pkg_ui.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/pkg_manage/pkg_ui.c b/usr.sbin/pkg_manage/pkg_ui.c index 876022bc4b69..41f53281ff9b 100644 --- a/usr.sbin/pkg_manage/pkg_ui.c +++ b/usr.sbin/pkg_manage/pkg_ui.c @@ -211,14 +211,23 @@ install_batch(void) use_helpfile(DS_INSTALL_HLP); quit = FALSE; while (!quit) { + if (StartDir) { use_helpline("Select directory where the pkg's reside"); - if (dialog_dselect(StartDir ? StartDir : ".", "*.tgz")) { + if (dialog_dselect(".", "*.tgz")) { quit = TRUE; } else { install_pkgs_indir(); } - } + else { + use_helpline("Select directory where the pkg's reside"); + if (dialog_dselect(".", "*.tgz")) { + quit = TRUE; + } else { + install_pkgs_indir(); + } + } + } return; } /* install_batch() */ |