2022-11-10 02:22:42 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2023-10-17 15:27:18 +00:00
|
|
|
INVALID_CHANGES=$(grep -E -r '(re-frame/dispatch|rf/dispatch|re-frame/subscribe|rf/subscribe|rf/sub|<sub|>evt|status-im\.|status-im2\.)' --include '*.cljs' --include '*.clj' './src/quo')
|
2022-11-10 02:22:42 +00:00
|
|
|
|
|
|
|
if test -n "$INVALID_CHANGES"; then
|
2023-10-17 15:27:18 +00:00
|
|
|
echo "WARNING: re-frame, status-im are not allowed in quo components"
|
2022-11-10 02:22:42 +00:00
|
|
|
echo ''
|
|
|
|
echo "$INVALID_CHANGES"
|
|
|
|
exit 1
|
|
|
|
fi
|