Add glide hash validation
Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
parent
dacde21c27
commit
96197af3f1
3 changed files with 17 additions and 2 deletions
14
script/validate-glide
Executable file
14
script/validate-glide
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash
|
||||
|
||||
source "$(dirname "$BASH_SOURCE")/.validate"
|
||||
|
||||
grep `glide-hash` glide.lock
|
||||
if [ $? -eq 0 ]; then
|
||||
echo 'Congratulations! glide.lock is unchanged.'
|
||||
else
|
||||
{
|
||||
echo "Error: glide.lock has been manually changed. Don't do this. Use glide up instead."
|
||||
echo
|
||||
} >&2
|
||||
false
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue