forked from xvzc/spoofdpi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
25 lines (19 loc) · 670 Bytes
/
Copy pathinstall.sh
File metadata and controls
25 lines (19 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!bin/bash
curl "https://api.github.com/repos/xvzc/SpoofDPI/releases/latest" |
grep '"tag_name":' |
sed -E 's/.*"([^"]+)".*/\1/' |
xargs -I {} curl -OL "https://github.com/xvzc/SpoofDPI/releases/download/"\{\}"/spoof-dpi-${1}.tar.gz"
mkdir -p ~/.spoof-dpi/bin
tar -xzvf ./spoof-dpi-${1}.tar.gz && \
rm -rf ./spoof-dpi-${1}.tar.gz && \
mv ./spoof-dpi ~/.spoof-dpi/bin
if [ $? -ne 0 ]; then
echo "Error. exiting now"
exit
fi
export PATH=$PATH:~/.spoof-dpi/bin
echo ""
echo "Successfully installed SpoofDPI."
echo "Please add the line below to your rcfile(.bashrc or .zshrc etc..)"
echo ""
echo ">> export PATH=\$PATH:~/.spoof-dpi/bin"