Files
dot-vim/pack/plugins/start/update.sh
2023-10-19 09:33:53 -07:00

12 lines
266 B
Bash
Executable File

#!/bin/bash
for u in *.url ; do
d=${u%.url}
if [[ -d $d ]]; then
echo "*** Updating: $d" >&2
git -C $d pull --prune 2>&1 | sed "s/^/[$d] /g" >&2
else
echo "*** Cloning: $d" >&2
git clone --depth 1 $(< $u) 2>&1 | sed "s/^/[$d] /g" >&2
fi
done