Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 0ba24be

Browse files
author
Dongsu Park
committed
scripts: introduce a new helper script glide-update.sh
Introduce a new helper script glide-update.sh to be able to easily update glide vendors. This script was originally taken from rkt.
1 parent f2ed85a commit 0ba24be

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

scripts/glide-update.sh

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Update vendored dedendencies.
4+
#
5+
set -e
6+
7+
if ! [[ "$0" =~ "scripts/glide-update.sh" ]]; then
8+
echo "must be run from repository root"
9+
exit 255
10+
fi
11+
12+
if [ -z "$(command -v glide)" ]; then
13+
echo "glide: command not found"
14+
exit 255
15+
fi
16+
17+
if [ -z "$(command -v glide-vc)" ]; then
18+
echo "glide-vc: command not found"
19+
exit 255
20+
fi
21+
22+
glide update --strip-vcs --strip-vendor --update-vendored --delete
23+
glide vc --only-code --no-tests

0 commit comments

Comments
 (0)