mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
scripts: use glide update if repo exists in glide.lock
This commit is contained in:
@@ -44,7 +44,14 @@ popd
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
echo "glide get on $(echo $1)"
|
||||
glide get --strip-vendor $1
|
||||
matches=`grep "name: $1" glide.lock`
|
||||
if [ ! -z "$matches" ]; then
|
||||
echo "glide update on $1"
|
||||
glide update --strip-vendor $1
|
||||
else
|
||||
echo "glide get on $1"
|
||||
glide get --strip-vendor $1
|
||||
fi
|
||||
else
|
||||
echo "glide update on *"
|
||||
glide update --strip-vendor
|
||||
|
||||
Reference in New Issue
Block a user