Skip to content

Commit

Permalink
Merge pull request senny#180 from senny/174_always_init_submodules
Browse files Browse the repository at this point in the history
scripts/install.sh: Initialize the submodules also when manually cloned senny#174.
  • Loading branch information
jone committed Feb 12, 2013
2 parents 27cee56 + 93b4132 commit 669c259
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions scripts/install.sh
Expand Up @@ -82,11 +82,13 @@ echo -e "\033[0;32mPress enter to continue (CTRL + c to cancel)\033[0m"
if $clone_repo; then
echo -e "Cloning cabbage to \033[0;32m$emaxdir\033[0m ..."
/usr/bin/env git clone $cloneurl $emaxdir || exit 1
(cd $emaxdir && /usr/bin/env git submodule init) || exit 1
(cd $emaxdir && /usr/bin/env git submodule update) || exit 1
echo ""
fi

# Initialize the submodules
(cd $emaxdir && /usr/bin/env git submodule init) || exit 1
(cd $emaxdir && /usr/bin/env git submodule update) || exit 1
echo ""

# Create backup
if $create_backup; then
echo -e "Moving \033[0;32m$confdir\033[0m to \033[0;32m$backupdir\033[0m"
Expand Down

0 comments on commit 669c259

Please sign in to comment.