Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
034652b2
Commit
034652b2
authored
Oct 28, 2016
by
mbohlool
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
verify-openapi-spec.sh should not ignore extra file in the spec folder api/openapi-spec
parent
cc84673e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
verify-openapi-spec.sh
hack/verify-openapi-spec.sh
+3
-2
No files found.
hack/verify-openapi-spec.sh
View file @
034652b2
...
@@ -32,14 +32,15 @@ TMP_SPECROOT="${KUBE_ROOT}/_tmp/openapi-spec"
...
@@ -32,14 +32,15 @@ TMP_SPECROOT="${KUBE_ROOT}/_tmp/openapi-spec"
_tmp
=
"
${
KUBE_ROOT
}
/_tmp"
_tmp
=
"
${
KUBE_ROOT
}
/_tmp"
mkdir
-p
"
${
_tmp
}
"
mkdir
-p
"
${
_tmp
}
"
trap
"rm -rf
${
_tmp
}
"
EXIT SIGINT
cp
-a
"
${
SPECROOT
}
"
"
${
TMP_SPECROOT
}
"
cp
-a
"
${
SPECROOT
}
"
"
${
TMP_SPECROOT
}
"
trap
"cp -a
${
TMP_SPECROOT
}
${
SPECROOT
}
/..; rm -rf
${
_tmp
}
"
EXIT SIGINT
rm
${
SPECROOT
}
/
*
cp
${
TMP_SPECROOT
}
/BUILD
${
SPECROOT
}
/BUILD
"
${
KUBE_ROOT
}
/hack/update-openapi-spec.sh"
"
${
KUBE_ROOT
}
/hack/update-openapi-spec.sh"
echo
"diffing
${
SPECROOT
}
against freshly generated openapi spec"
echo
"diffing
${
SPECROOT
}
against freshly generated openapi spec"
ret
=
0
ret
=
0
diff
-Naupr
-I
'Auto generated by'
"
${
SPECROOT
}
"
"
${
TMP_SPECROOT
}
"
||
ret
=
$?
diff
-Naupr
-I
'Auto generated by'
"
${
SPECROOT
}
"
"
${
TMP_SPECROOT
}
"
||
ret
=
$?
cp
-a
${
TMP_SPECROOT
}
"
${
KUBE_ROOT
}
/api"
if
[[
$ret
-eq
0
]]
if
[[
$ret
-eq
0
]]
then
then
echo
"
${
SPECROOT
}
up to date."
echo
"
${
SPECROOT
}
up to date."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment