mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
use old insaller
This commit is contained in:
parent
4185242caa
commit
72bf5b7ba6
33
install
33
install
@ -1,3 +1,32 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cp $(dirname $0)/pirate-get.py /usr/local/bin/pirate-get
|
set -e
|
||||||
chmod +x /usr/local/bin/pirate-get
|
|
||||||
|
TMP=$(mktemp pirate-get-XXXXXX)
|
||||||
|
|
||||||
|
{
|
||||||
|
if [ $(which python3) ]
|
||||||
|
then
|
||||||
|
python='python3'
|
||||||
|
else
|
||||||
|
python='python'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $(which pip3) ]
|
||||||
|
then
|
||||||
|
pip='pip3'
|
||||||
|
else
|
||||||
|
pip='pip'
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "#!/usr/bin/env $python" > "$TMP" &&
|
||||||
|
|
||||||
|
sed 1d $(dirname $0)/pirate-get.py >> "$TMP"
|
||||||
|
|
||||||
|
cp "$TMP" /usr/bin/pirate-get &&
|
||||||
|
chmod +x /usr/bin/pirate-get &&
|
||||||
|
chmod 755 /usr/bin/pirate-get &&
|
||||||
|
|
||||||
|
$pip install -r requirements.txt &&
|
||||||
|
|
||||||
|
rm $TMP
|
||||||
|
} || rm $TMP
|
||||||
|
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
colorama==0.3.2
|
Loading…
Reference in New Issue
Block a user