@@ -33,7 +33,7 @@ while getopts "h?yqb:" opt; do
3333 ;;
3434 q) quiet=1
3535 ;;
36- b) BUNDLE_LOC=$OPTARG
36+ b) BUNDLE_LOC=$OPTARG
3737 if [ -f $BUNDLE_LOC ]; then
3838 export BUNDLE_LOC=$BUNDLE_LOC
3939 else
@@ -105,7 +105,7 @@ if ! command -v sudo > /dev/null 2>&1; then
105105 exit 1
106106fi
107107
108- # Install build requirements (compiler, etc)
108+ # Install build requirements (compiler, etc)
109109if [ " Darwin" = " $SYSTEM " ]; then
110110 if ! ./etc/install_osx.sh; then
111111 printf " %s\n" " >>> Sorry <<<" \
118118 dependency_level=all
119119 else
120120 dependency_level=build
121- fi
121+ fi
122122 echo " >>> Dependencies required:"
123123 if ! ./etc/install_build_requirements.sh -s $SYSTEM -r $RELEASE -c -d $dependency_level ; then
124124 missing_dependencies=1
132132# Check if script has write permission to PREFIX location
133133start_dir=$INCLUDEOS_PREFIX
134134while [ " $start_dir " != " /" ]
135- do
135+ do
136136 if [ -d $start_dir ]; then # If dir exists
137137 if [ ! -w $start_dir ]; then # If dir is not writable
138138 printf " \n\n>>> IncludeOS can't be installed with the current options\n"
@@ -164,7 +164,7 @@ printf " %-25s %-25s %s\n"\
164164
165165# Give user option to evaluate install options
166166if tty -s && [ $install_yes -eq 0 ]; then
167- read -p " Is this correct [Y/n]?" answer
167+ read -p " Is this correct [Y/n]? " answer
168168 answer=${answer:- " Y" } # Default value
169169 case $answer in
170170 [yY] | [yY][Ee][Ss] )
@@ -190,7 +190,7 @@ function clean {
190190 if [ -f /tmp/cmake_output.txt ]; then
191191 rm /tmp/cmake_output.txt
192192 fi
193- }
193+ }
194194trap clean EXIT
195195
196196printf " \n\n>>> Running install_from_bundle.sh (expect up to 3 minutes)\n"
223223# INSTALL FINISHED:
224224# ###########################################################
225225
226- printf " \n\n>>> IncludeOS installation Done!\n"
226+ printf " \n\n>>> IncludeOS installation Done!\n"
227227printf " %s\n" " To use IncludeOS set env variables for cmake to know your compiler, e.g.:" \
228228 ' export CC="clang-3.8"' \
229229 ' export CXX="clang++-3.8"' \
0 commit comments