Merge from vm
This commit is contained in:
11
pack/plugins/start/update.sh
Executable file
11
pack/plugins/start/update.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user