Skip to content

Commit

Permalink
Better solution on hyperhq#4
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiahao Dai committed Oct 9, 2015
1 parent 0aac726 commit d5c211e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion hyper-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,23 @@ DEBIAN_CODE=(jessie wheezy)
CENTOS_VER=(6 7)
FEDORA_VER=(20 21 22)
#Color Constant
[ ! -z ${TERM} ] || TERM="xterm" # tput would complain without $TERM environ
# reset virables
RED=''
GREEN=''
YELLOW=''
BLUE=''
WHITE=''
LIGHT=''
RESET=''
[ -z ${TERM} ] || {
RED=`tput setaf 1`
GREEN=`tput setaf 2`
YELLOW=`tput setaf 3`
BLUE=`tput setaf 4`
WHITE=`tput setaf 7`
LIGHT=`tput bold `
RESET=`tput sgr0`
}
#Error Message
ERR_ROOT_PRIVILEGE_REQUIRED=(10 "This install script need root privilege, please retry use 'sudo' or root user!")
ERR_NOT_SUPPORT_PLATFORM=(20 "Sorry, Hyper only support x86_64 platform!")
Expand Down

0 comments on commit d5c211e

Please sign in to comment.