mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-25 12:41:26 -05:00
19 lines
588 B
Bash
Executable file
19 lines
588 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
#Update pathogen bundles
|
|
pushd bundle > /dev/null 2>&1
|
|
for each in *; do
|
|
if [ -d "$each" ]; then
|
|
pushd "$each" > /dev/null 2>&1
|
|
if [ -d .git ]; then
|
|
echo "Updating git repo: ${each}..."
|
|
git pull
|
|
elif [ -d .git -o -f .git ]; then
|
|
echo "Updating git submodule: ${each}..."
|
|
git pull origin master
|
|
git submodule update
|
|
fi
|
|
popd > /dev/null 2>&1
|
|
fi
|
|
done
|
|
popd > /dev/null 2>&1
|