Commit 8a23f68a authored by Vitaly Lipatov's avatar Vitaly Lipatov

move confirm_info to sh-functions

parent 6ddc4a4f
......@@ -20,15 +20,6 @@
load_helper epm-query
load_helper epm-repofix
confirm_info()
{
info "$*"
if [ -z "$non_interactive" ] ; then
confirm "Are you sure? [y/N]" || fatal "Exiting"
fi
}
SAVELISTDIR=/tmp/eepm-release_upgrade
__save_alt_repo_lists()
{
......
......@@ -366,6 +366,17 @@ confirm() {
esac
}
confirm_info()
{
info "$*"
if [ -z "$non_interactive" ] ; then
confirm "Are you sure? [y/N]" || fatal "Exiting"
fi
}
assure_root()
{
[ "$EFFUID" = 0 ] || fatal "run me only under root"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment