aboutsummaryrefslogtreecommitdiffstats
path: root/iurt2
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mageia.org>2012-03-26 18:20:55 +0000
committerThierry Vignaud <tv@mageia.org>2012-03-26 18:20:55 +0000
commit89a45afe87999d3772e60dcd13b4895fe5e50d59 (patch)
treecf2d235b435a9f78840d5b75bec5e38b48782cee /iurt2
parent469a9dad368a25ede43f61b760ff7c8532aff712 (diff)
downloadiurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar
iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar.gz
iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar.bz2
iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.tar.xz
iurt-89a45afe87999d3772e60dcd13b4895fe5e50d59.zip
better error messages when running as root or w/o sudo
(no line numbers in output)
Diffstat (limited to 'iurt2')
-rwxr-xr-xiurt24
1 files changed, 2 insertions, 2 deletions
diff --git a/iurt2 b/iurt2
index bc86925..26e1bcd 100755
--- a/iurt2
+++ b/iurt2
@@ -670,14 +670,14 @@ if ($run{use_cache}) {
$run{daydate} = $daydate;
plog('DEBUG', "using $run{run} as chroot extension");
$run{user} ||= $ENV{USER};
-die "Iurt should not be executed as root." if $run{user} eq "root";
+die "Iurt should not be executed as root.\n" if $run{user} eq "root";
$run{uid} = getpwnam $run{user};
plog('DEBUG', "using local user $run{user}, id $run{uid}");
my $luser = $run{user} || 'builder';
check_sudo_access()
- or die "FATAL: you need to have sudo access on $config->{iurt_root_command} to run $program_name";
+ or die "FATAL: you need to have sudo access on $config->{iurt_root_command} to run $program_name\n";
my $debug_tag = $run{debug} && '_debug';
$run{debug_tag} = $debug_tag;