summaryrefslogtreecommitdiff
path: root/Master/install-tl.pl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/install-tl.pl')
-rwxr-xr-xMaster/install-tl.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/install-tl.pl b/Master/install-tl.pl
index 661f334835b..0174f31bac8 100755
--- a/Master/install-tl.pl
+++ b/Master/install-tl.pl
@@ -13,7 +13,11 @@ BEGIN {
$^W = 1;
my $me=$0;
$me=~s!\\!/!g if $^O=~/^MSWin(32|64)$/i;
- ($installerdir=$me)=~s!(.*)/.*$!$1!;
+ if ($me=~m!/!) {
+ ($installerdir=$me)=~s!(.*)/.*$!$1!;
+ } else {
+ $installerdir='.';
+ }
unshift (@INC, "$installerdir/tlpkg");
}