Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
This commit is contained in:
parent
271665dfef
commit
864e63c04d
@ -37,6 +37,7 @@ mkdir -p "$FUNC_DIR"
|
|||||||
|
|
||||||
BUILD_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func"
|
BUILD_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func"
|
||||||
BUILD_REV="$FUNC_DIR/build.rev"
|
BUILD_REV="$FUNC_DIR/build.rev"
|
||||||
|
DEVMODE="${DEVMODE:-no}"
|
||||||
|
|
||||||
# --- Step 1: fetch build.func content once, compute hash ---
|
# --- Step 1: fetch build.func content once, compute hash ---
|
||||||
build_content="$(curl -fsSL "$BUILD_URL")" || {
|
build_content="$(curl -fsSL "$BUILD_URL")" || {
|
||||||
@ -100,8 +101,10 @@ if [ "$newhash" != "$oldhash" ]; then
|
|||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
if [ "$DEVMODE" != "yes" ]; then
|
||||||
echo "✔️ build.func unchanged → using existing local core files"
|
echo "✔️ build.func unchanged → using existing local core files"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# --- Step 3: always source local versions of the core files ---
|
# --- Step 3: always source local versions of the core files ---
|
||||||
source "$FUNC_DIR/core.func"
|
source "$FUNC_DIR/core.func"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user