Skip to content

Commit

Permalink
add install sh
Browse files Browse the repository at this point in the history
  • Loading branch information
taikulawo committed Sep 5, 2019
1 parent 199bf27 commit 873ca87
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ script:
before_deploy:
- git config --local user.name "${GIT_USER_NAME}"
- git config --local user.email "${GIT_USER_EMAIL}"
- git tag

deploy:
provider: releases
Expand Down
20 changes: 20 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/bin/bash

red='\033[0;31m'
plain='\033[0m'

[[ $EUID -ne 0 ]] && echo -e "[${red}Error${plain}] This script must be run as root!" && exit 1

# download wwcdocker binary
curl -s https://api.github.com/repos/iamwwc/wwcdocker/releases/latest \
| grep browser_download_url \
| cut -d '"' -f 4 \
| wget -i -

cwd=$(pwd)
chmod u+x wwcdocker
#export to path
export PATH=$PATH:${cwd}

green='\033[0;32m'
echo -e "${green}Type wwcdocker for help :)${plain}"

0 comments on commit 873ca87

Please sign in to comment.