summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-03-03 22:55:43 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-03-03 22:55:43 +0000
commitee5839a2f6e4e97bfae814e43ccde3c7728c53d1 (patch)
treef68cb58b990b7af623fe1f6a03305559b4da6bb8 /lib
parent5295430b1fc68246a39c96efd8e593de9322f222 (diff)
downloaddrakiso-ee5839a2f6e4e97bfae814e43ccde3c7728c53d1.tar
drakiso-ee5839a2f6e4e97bfae814e43ccde3c7728c53d1.tar.gz
drakiso-ee5839a2f6e4e97bfae814e43ccde3c7728c53d1.tar.bz2
drakiso-ee5839a2f6e4e97bfae814e43ccde3c7728c53d1.tar.xz
drakiso-ee5839a2f6e4e97bfae814e43ccde3c7728c53d1.zip
Fix some perl_checker warnings.
Diffstat (limited to 'lib')
-rw-r--r--lib/MGA/DrakISO/Utils.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MGA/DrakISO/Utils.pm b/lib/MGA/DrakISO/Utils.pm
index b0a942d..5dad0ba 100644
--- a/lib/MGA/DrakISO/Utils.pm
+++ b/lib/MGA/DrakISO/Utils.pm
@@ -64,7 +64,7 @@ sub run_as_root {
if (@cmd > 1) {
unshift @cmd, $sudo if $sudo;
} else {
- $cmd[0] = join(' ', $sudo, @cmd[0]);
+ $cmd[0] = join(' ', $sudo, $cmd[0]);
}
run_(@cmd);
}
@@ -77,7 +77,7 @@ sub run_in_root {
unshift @cmd, ('setarch', $arch) if $arch;
unshift @cmd, $sudo if $sudo;
} else {
- $cmd[0] = join(' ', $sudo, if_($arch, 'setarch', $arch), 'chroot', $root, @cmd[0]);
+ $cmd[0] = join(' ', $sudo, if_($arch, 'setarch', $arch), 'chroot', $root, $cmd[0]);
}
print "@cmd\n" if $::verbose > 2;
local %ENV = %ENV;