summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gurpmi6
1 files changed, 4 insertions, 2 deletions
diff --git a/gurpmi b/gurpmi
index f36525f0..d521a153 100644
--- a/gurpmi
+++ b/gurpmi
@@ -2,6 +2,8 @@
$ENV{XAUTHORITY} or $ENV{XAUTHORITY} = "$ENV{HOME}/.Xauthority";
+$urpmi = 'urpmi';
+if (-f $urpmi) { $urpmi = './urpmi' }
-exec "urpmi", "--X", @ARGV;
-
+exec $urpmi, "--X", @ARGV
+ or die "Can't exec urpmi: $!\n";