Skip to content

Commit 71cad45

Browse files
author
Ian Campbell
committed
update-linuxkit-hashes: Option to update from a specific rev
Signed-off-by: Ian Campbell <ijc@docker.com>
1 parent f86c7ee commit 71cad45

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/update-linuxkit-hashes.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ trap 'if [ -d "$tdir" ] ; then rm -rf $tdir; fi' EXIT
88

99
git clone $lkurl $tdir/lk
1010

11+
case $# in
12+
0) ;;
13+
1)
14+
git -C $tdir/lk reset --hard $1
15+
;;
16+
*)
17+
echo "Invalid arguments" >&2
18+
exit 1
19+
;;
20+
esac
21+
1122
lkrev=$(git -C $tdir/lk show --oneline -s HEAD)
1223

1324
update_hash() {

0 commit comments

Comments
 (0)