You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
258 B
14 lines
258 B
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
if ! command -v hey > /dev/null; then
|
||
|
HEY_URL=https://hey-release.s3.us-east-2.amazonaws.com/hey_linux_amd64
|
||
|
wget $HEY_URL -O hey
|
||
|
chmod +x hey
|
||
|
|
||
|
if [[ $(whoami) == "root" ]]; then
|
||
|
mv hey /usr/bin/hey
|
||
|
else
|
||
|
sudo mv hey /usr/bin/hey
|
||
|
fi
|
||
|
fi
|