#!/bin/bash git pull || exit $? git submodule foreach 'git checkout master' || exit $? git submodule foreach 'if git pull | grep '\''^Updating'\''; then printf " %s" "$(basename $sm_path)" >> $toplevel/build-pkg/pkglist.tmp; fi'