mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
26 lines
614 B
Bash
Executable File
26 lines
614 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# this shell script will be replaced by a proper program in the future (probably)
|
|
#
|
|
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
NC='\033[0m' # No Color
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
url="https://i2p.rocks/i2procks.signed"
|
|
else
|
|
url="$1"
|
|
fi
|
|
|
|
echo "downloading $url"
|
|
|
|
if [ ! -d "$HOME/.lokinet" ]
|
|
then
|
|
mkdir $HOME/.lokinet
|
|
fi
|
|
|
|
# MacOS does not have wget without homebrew but does have curl
|
|
# Rick also had indicated most BSDs have curl too
|
|
curl "$url" > $HOME/.lokinet/bootstrap.signed; echo -e "${GREEN}lokinet successfully bootstrapped${NC}" || echo -e "${RED}failed to download bootstrap from $url${NC}"
|