#!/bin/bash
# git-update.sh

for user in ~/Workspace/src/github.com/*
do
	if [[ ! $user =~ $GITHUB_USER_NAME ]]; then
		for project in $user/*
		do
			if [ -d $project/.git ]; then
				echo "git $project"
				cd $project
				if [[ $project == *base16-shell* ]]; then
					git pull --all
				else
					#statements
					git fetch --all
					git reset --hard
					git clean -df
					git merge --ff-only
					git submodule update --init --recursive
				fi
				echo ""
			fi
		done
	fi
done

#!/bin/bash
# git-update.sh

for user in ~/Workspace/src/github.com/*
do
	if [[ ! $user =~ $GITHUB_USER_NAME ]]; then
		for project in $user/*
		do
			if [ -d $project/.git ]; then
				echo "git $project"
				cd $project
				if [[ $project == *base16-shell* ]]; then
					git pull --all
				else
					#statements
					git fetch --all
					git reset --hard
					git clean -df
					git merge --ff-only
					git submodule update --recursive
				fi
				echo ""
			fi
		done
	fi
done

Fix mistake calling git submodule update --init on update
Fix mistake calling git submodule update --init on update
