Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

Commit

Permalink
Fix Update Error reported in Issue #1 😅
Browse files Browse the repository at this point in the history
Error reported in issue #1 is now fixed.
  • Loading branch information
GochoMugo committed Jan 10, 2015
1 parent 5dc1ea5 commit 3f1e420
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions grunt-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ GRUNT_COLOR_WHITE="\033[1;37m"


# Script Variables
GRUNT_ME=$0 # useful for invoking this same script from within it
GRUNT_INSTALL_FORCE=false
GRUNT_INSTALL_SILENT=false


# Test-specific variables
[ ${GRUNT_INSTALL_UNIT_TEST} ] && GRUNT_ME="$BATS_TEST_DIRNAME/../grunt-install.sh"


# installs from Github
#
# ${1} github shorthand e.g. GochoMugo/grunt-install
Expand Down Expand Up @@ -121,15 +126,21 @@ grunt_install() {

# updates grunt templates
grunt_update_templates() {
local update_success=0
for template in ${GRUNT_TEMPLATE_DIRECTORY}/*/ ; do
if [ -r ${template}/.grunt-install.config ] ; then
template_name=$(basename ${template})
source ${template}/.grunt-install.config
./grunt-install.sh ${GRUNT_TEMPLATE_UPDATE} ${template_name} --force --silent \
&& grunt_log "updated: ${template_name}" 1 \
|| grunt_log "failed to update: ${template_name}" 2
${GRUNT_ME} ${GRUNT_TEMPLATE_UPDATE} ${template_name} --force --silent
if [ $? -eq 0 ] ; then
grunt_log "updated: ${template_name}" 1
else
grunt_log "failed to update: ${template_name}" 2
update_success=1
fi
fi
done
return ${update_success}
}


Expand Down

0 comments on commit 3f1e420

Please sign in to comment.