Now takes a backdoor.
This commit is contained in:
parent
039a2a3218
commit
7f755e175e
10
install.sh
10
install.sh
@ -22,6 +22,8 @@ cowsay Installation
|
|||||||
Searching for useful perl executables...
|
Searching for useful perl executables...
|
||||||
DOG
|
DOG
|
||||||
|
|
||||||
|
backdoor=$1
|
||||||
|
|
||||||
pathdirs=`echo $PATH | tr : " "`
|
pathdirs=`echo $PATH | tr : " "`
|
||||||
for p in $pathdirs; do
|
for p in $pathdirs; do
|
||||||
set $p/perl $p/perl5*
|
set $p/perl $p/perl5*
|
||||||
@ -53,7 +55,13 @@ echo I will be using $1 because I know it will work.
|
|||||||
|
|
||||||
echo Now I need an installation prefix. I will use /usr/local unless
|
echo Now I need an installation prefix. I will use /usr/local unless
|
||||||
printf "you give me a better idea here: "
|
printf "you give me a better idea here: "
|
||||||
read prefix
|
if [ -n "$backdoor" ]; then
|
||||||
|
prefix=$backdoor
|
||||||
|
printf "%s (specified on command line)\n" $prefix
|
||||||
|
else
|
||||||
|
read prefix
|
||||||
|
fi
|
||||||
|
|
||||||
PREFIX=${prefix:-/usr/local}
|
PREFIX=${prefix:-/usr/local}
|
||||||
|
|
||||||
echo Okay, time to install this puppy.
|
echo Okay, time to install this puppy.
|
||||||
|
Loading…
Reference in New Issue
Block a user