Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine third-party lib checking scripts. #642

Merged
merged 1 commit into from Oct 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions check_third_party.sh
@@ -1,8 +1,10 @@
#!/usr/bin/env bash

./web/client/resources/js/lib/update.sh
cd "$(dirname $(realpath $0))"

if ! (git diff-files --quiet); then
sh ./web/client/resources/js/lib/update.sh

if ! (git diff-files --quiet web/client/resources/js/lib); then
echo "Third party libraries don't match their .url files."
echo "Re-run ./web/client/resources/js/lib/update.sh"
exit 1
Expand Down
2 changes: 2 additions & 0 deletions web/client/resources/js/lib/update.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

cd "$(dirname $(realpath $0))"

config_file=()

for url in *.url; do
Expand Down