#!/bin/bash

# 自定义路径
CUSTOM_PATH="/opt/update-module/current/usr/bin/"

# 检查自定义路径是否存在可执行的 ostree
if [ -x "$CUSTOM_PATH/ostree" ]; then
    # 执行自定义的 ostree
    exec "$CUSTOM_PATH/ostree" "$@"
else
    # 回退到系统 ostree
    exec /usr/bin/ostree "$@"
fi
