Skip to content

Commit

Permalink
added INSTALL_ROOT variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mrash committed Dec 18, 2012
1 parent 85d20e9 commit 4468524
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install.pl
Expand Up @@ -21,7 +21,7 @@
# USA
#
# TODO:
# - Write the uninstall() routine. :)
# - Write the uninstall() routine.
#
#######################################################################
#
Expand Down Expand Up @@ -440,7 +440,11 @@ ()
die "[*] sub-ver $sub_var not allowed within same ",
"variable $var" if $sub_var eq $var;
if (defined $config{$sub_var}) {
$val =~ s|\$$sub_var|$config{$sub_var}|;
if ($sub_var eq 'INSTALL_ROOT' and $config{$sub_var} eq '/') {
$val =~ s|\$$sub_var||;
} else {
$val =~ s|\$$sub_var|$config{$sub_var}|;
}
$hr->{$var} = $val;
} else {
die "[*] sub-var \"$sub_var\" not defined in ",
Expand Down

0 comments on commit 4468524

Please sign in to comment.