mirror of
https://github.com/vikstrous/pirate-get
synced 2025-01-10 10:04:21 +01:00
Removed temporary files
This commit is contained in:
parent
9af95b1da5
commit
83c8289c8f
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
pirate-get-*
|
16
install.sh
16
install.sh
@ -1,22 +1,24 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if [ "$UID" -ne 0 ]
|
if [ "$UID" -ne 0 ]
|
||||||
then echo "Please run as root"
|
then echo "Please run as root"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TMP=`mktemp pirate-get-XXX`
|
TMP=$(mktemp pirate-get-XXX)
|
||||||
if [ `which python2.7` ]
|
if [ $(which python2.7) ]
|
||||||
then
|
then
|
||||||
echo "#!/usr/bin/env python2.7" > $TMP
|
echo "#!/usr/bin/env python2.7" > "$TMP"
|
||||||
elif [ `which python2` ]
|
elif [ `which python2` ]
|
||||||
then
|
then
|
||||||
echo "#!/usr/bin/env python2" > $TMP
|
echo "#!/usr/bin/env python2" > "$TMP"
|
||||||
else
|
else
|
||||||
echo "#!/usr/bin/env python" > $TMP
|
echo "#!/usr/bin/env python" > "$TMP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed 1d `dirname $0`/pirate-get.py >> $TMP
|
sed 1d $(dirname $0)/pirate-get.py >> "$TMP"
|
||||||
|
|
||||||
cp $TMP /usr/bin/pirate-get
|
cp "$TMP" /usr/bin/pirate-get
|
||||||
chmod +x /usr/bin/pirate-get
|
chmod +x /usr/bin/pirate-get
|
||||||
chmod 755 /usr/bin/pirate-get
|
chmod 755 /usr/bin/pirate-get
|
||||||
|
rm "$TMP"
|
||||||
|
Loading…
Reference in New Issue
Block a user