summaryrefslogtreecommitdiff
path: root/utils/update-mojo.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/update-mojo.sh')
-rwxr-xr-xutils/update-mojo.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/utils/update-mojo.sh b/utils/update-mojo.sh
index b6fbc6d1..25a280e0 100755
--- a/utils/update-mojo.sh
+++ b/utils/update-mojo.sh
@@ -15,6 +15,12 @@ chromium_dir="$(realpath "$1")"
cd "${ipc_dir}/../../"
+# Reject dirty libcamera trees
+if [ -n "$(git status --porcelain -uno)" ] ; then
+ echo "libcamera tree is dirty"
+ exit 1
+fi
+
if [ ! -d "${chromium_dir}/mojo" ] ; then
echo "Directory ${chromium_dir} doesn't contain mojo"
exit 1
@@ -28,7 +34,7 @@ fi
# Get the chromium commit id
version=$(git -C "${chromium_dir}" rev-parse --short HEAD)
-# Reject dirty trees
+# Reject dirty chromium trees
if [ -n "$(git -C "${chromium_dir}" status --porcelain)" ] ; then
echo "Chromium tree in ${chromium_dir} is dirty"
exit 1