mbzdefend-fix/createmodule.sh
Cuynu f5d799674a fix: createmodule.sh: wrong name
Signed-off-by: Cuynu <cuynu@proton.me>
2025-12-18 16:14:18 +07:00

20 lines
629 B
Shell
Executable file

#!/bin/bash
COMMIT="$(git rev-parse --short HEAD)"
echo "Creating module (*.zip)..."
cd module_new/zdefend-fix
zip -r mbzdefend_fix_bindhosts_$COMMIT.zip . >/dev/null 2>&1
cd ..
cd ..
mv module_new/zdefend-fix/mbzdefend_fix_*.zip mbzdefend_fix_bindhosts_$COMMIT.zip
if [ -f mbzdefend_fix_*.zip ]; then
echo "Module saved to [mbzdefend_fix_bindhosts_$COMMIT.zip], try to flash it :>"
rm -rf module_new/zdefend-fix/*.zip
else
echo "Where is [mbzdefend_fix_bindhosts_$COMMIT.zip] ?"
echo "Did module actually created yet... Try fetch repo and use command again!"
echo "If your system doesn't have [zip], pls install it"
fi